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

What are WhereArgs

UziTech

Lurker
Feb 7, 2010
3
0
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones