I had also tried as
Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
{"SwitchID,SwitchName,RoomID,RoomName"}, "RoomID=
",null,null,null," ASC");
But still it is not working.Any clue?
On Nov 22, 9:13 am, "pramod.deore" <[email protected]> wrote:
> Hi ,
> I have a table that has 4 columns.There is no primary key in that
> table. Now I want to retrieve table data according to ascending order
> of one column (say ascending order of RoomID). I had tried it as
>
> Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
> {"SwitchID,SwitchName,RoomID,RoomName"},
> "RoomID"+ " ASC" ,null, null, null, null);
>
> But it doesn't work. Anyone know what is wrong here?
> Thanks
--
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