SQl function in android

Posted by rui.pereira on Stack Overflow See other posts from Stack Overflow or by rui.pereira
Published on 2010-04-16T15:38:03Z Indexed on 2010/04/16 15:43 UTC
Read the original article Hit count: 326

Filed under:
|
|
Cursor cursor = db.rawQuery("SELECT COUNT(rat) 
                               FROM "+ TABLE_NAME_EXTRA +" apkid=\""+apkid, null);
cursor.moveToFirst();
int somatotal = cursor.getInt(0);

I'm trying to do a SQL function like count and sum, but this code returns a exception saying "emptyvalues".

anyone know why?

© Stack Overflow or respective owner

Related posts about sql

Related posts about java