What is the error?? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com
On Thu, Dec 2, 2010 at 4:54 PM, pramod.deore <[email protected]>wrote: > Hi, I have a table with 5 columns. > 1. RoomID > 2. RoomName > 3.RoomSuffix > 4. SwitchID > 5. SwitchName > > I have some data in this table. Now I want to update database. How to > do this? I search for this but didn't get well answer > > I had tried it like: > > sampleDB = this.openOrCreateDatabase(SAMPLE_DBNAME, MODE_PRIVATE, > null); > > ContentValues args = new ContentValues(); > args.put(SwitchName, switchRename); > > Here I want to put SwitchName value as switchRename. > Now I execute method as: > > sampleDB.update(SWITCH_TABLE_NAME, args, SwitchName > +'menuItemName',null); > > But here second last argument (i.e where clause give me an error).In > where clause I want as "SwitchName = 'xyz' " i.e where SwitchName is > xyz. How to write this where condition correctly? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

