Results 1 to 1 of 1
Thread: SQLite mutiple table update
- 11-12-2012, 05:54 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
SQLite mutiple table update
Im making a budgeting program using mutliple table when i create a budget i call this method
it insert data in the first table but not the others why is this and how can i fix it to insert all the data in to all the tables any help is greatly apprciatedJava Code:public SQLiteDatabase createBudget(String bname, String bpay, String bamount, String bmemo) { // TODO Auto-generated method stub ContentValues t1 = new ContentValues(); ContentValues t2 = new ContentValues(); ContentValues t4 = new ContentValues(); t1.put(KEY_NAME, bname); t1.put(KEY_PAYDAY,bpay); t2.put(KEY_AMOUNT, bamount); t4.put(KEY_MEMO, bmemo); ourDatabase.insert(DATABASE_TABLE1, null, t1); ourDatabase.insert(DATABASE_TABLE2, null, t2); ourDatabase.insert(DATABASE_TABLE4, null, t4); return ourDatabase; }
Similar Threads
-
Prepared statement and update Table
By Bhavana Jain in forum JDBCReplies: 4Last Post: 09-01-2012, 08:23 AM -
Update field in table
By tarkowc in forum JDBCReplies: 5Last Post: 02-10-2011, 07:25 PM -
Update table in database
By CTheSky in forum JDBCReplies: 3Last Post: 01-30-2011, 04:18 AM -
how can i update my table with Jtextfield filtering?
By sungirl in forum Advanced JavaReplies: 4Last Post: 12-14-2010, 04:28 PM -
How to convert Sqlite database table into XML file
By sahnse in forum New To JavaReplies: 1Last Post: 12-18-2009, 01:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks