5 messages in com.googlegroups.android-beginners[android-beginners] Re: How to get th...
FromSent OnAttachments
scorpio28 May 2008 06:01 
Mark Murphy28 May 2008 06:20 
scorpio28 May 2008 07:02 
Mark Murphy28 May 2008 07:18 
scorpio28 May 2008 09:14 
Subject:[android-beginners] Re: How to get the maximum value of an attribute in a table
From:scorpio (nith@gmail.com)
Date:05/28/2008 07:02:12 AM
List:com.googlegroups.android-beginners

hi Mark, but here, the return value is an integer, but for Sqlitedatabase.query() its returning cursor, so how can we get the integer value.

thanks Nithin

On May 28, 6:21 pm, Mark Murphy <mmur@commonsware.com> wrote:

scorpio wrote:

Hi all,

how we can get the maximum value of an attribute in a table, in terminal , i checked and its working,

the query is -> select max(key) from Testing;

but how we can do this in Android.

Try SQLiteDatabase#rawQuery(), as documented on the Android site:

http://tinyurl.com/4r35qn