Is there any way to check whether a row in a table has been modified or not in Cassandra. I don't want to compare the date before and after updating row in table. After Update operation I need to verify the query executed properly or not using python scripts. I am using Cassandra Driver for python.
الأحد، 5 يناير 2014
الخميس، 26 ديسمبر 2013
Populate values from one table
I am trying to populate an empty table(t) from another table(t2) based on a flag field being set. He is my attempt below and the table data.
UPDATE 2014PriceSheetIssues AS tJOIN TransSalesAvebyType2013Combined AS t2 SET t.`Tran_Type`=t2.`Tran_Type` WHERE t.`rflag`='1';Tran_Type; RetailAvePrice; WholesaleAvePrice; Rflag; Wflag;125C 992 650 1 \n2004R 1500 \N 1 \N4EAT 1480 1999 1 1الثلاثاء، 24 ديسمبر 2013
yii cdbcriteria->with child table record not displayed in view
In yii based application Im working on a search query. query is performed on two tables customers and customerContacts. Customer can have one-to-many contacts in different countries
Im using cdbcriteria as:
$criteria = new CDbCriteria;$criteria->alias = 't' ;$criteria->with= array("customerContacts"=> array("select"=>"customerContacts.fullname")); $criteria->condition = " customerContacts.country_id = 1";$customers = Customer::model()->findAll($criteria);Relations are
In Costumer model:
'customerContacts' => array(self::HAS_MANY, 'customerContacts', 'customer_id'),in customerContact model:
'customer' => array(self::BELONGS_TO, 'Customer', 'customer_id'),Issue is that there is a fullname column in customerContact table. This cdbCriteria is picking that fullname but it is not displayed that in view page, although data exists in table.
view code
customerContacts->fullname;endforeach; ?>I'am stuck in this. please help where im doing wrong?
الجمعة، 20 ديسمبر 2013
Getting value from dynamic table in Android
This was my code for creating table and appending the data dynamically
table = (TableLayout)findViewById(R.id.table); inflater = getLayoutInflater(); for(int i = 0; i < 5; i++) { row = (TableRow)inflater.inflate(R.layout.row,table, false); TextView text = (TextView)row.findViewById(R.id.text1); text.setText("sss:" + i); text1 = (EditText)row.findViewById(R.id.text2); `enter code here` text2 = (TextView)row.findViewById(R.id.text3); text2.setText(""); text1.addTextChangedListener(new MyWatcher(text2)); table.addView(row); }this code is working fine but my problem is when i click the button i want to get the values from each row which is to be only filledenter code here
NxtBtn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { } });please help me out in this.