Hi,

 A future release of the SDK will provide a SQLiteDatabase.query() which
takes LIMIT clause as an argument.
 For now you can use the use execSQL() method directly and specify the LIMIT
in that way.

 Thanks,
 Megha

On Wed, Apr 9, 2008 at 10:44 AM, vinh2b <[EMAIL PROTECTED]> wrote:

>
> Hi,
> With m3-rc20a SDK version, I can use:
> SELECT * FROM myTable WHERE Name like '%abc%' LIMIT 1, 10
> But with m5-rc15 SDK verion, I can't use the same query.
> I try to use:
> String[] mArgs = new String[] {"'%" + txtSearch + "%'"};
> String mSelection = "Name like ?  LIMIT 1, 10";
> Cursor c = mConn.query("Data", null, mSelection, mArgs, null, null,
> null);
> Size of the c cursor always return 0 value.
> Help me to solve my problem please!
>
> 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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to