• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

What are WhereArgs

UziTech

Lurker
What are you supposed to put for whereArgs?

Code:
[B]public int delete ([URL="http://developer.android.com/reference/java/lang/String.html"]String[/URL] table, [URL="http://developer.android.com/reference/java/lang/String.html"]String[/URL] whereClause, [URL="http://developer.android.com/reference/java/lang/String.html"]String[][/URL] whereArgs)     [/B]

Since: [URL="http://developer.android.com/guide/appendix/api-levels.html#level1"]API Level 1[/URL]        
Convenience method for deleting rows in the database.

[B]Parameters[/B]

table           the table to delete from
whereClause           the optional WHERE clause to apply when deleting. Passing null will delete all rows.                   
[B]
Returns[/B]

the number of rows affected if a whereClause is passed in, 0          otherwise. To remove all rows and get a count pass "1" as the          whereClause.
from SQLiteDatabase | Android Developers
 
Back
Top Bottom