1. Check out our app, Forums for Android! Download and leave feedback here!

What are WhereArgs

Discussion in 'Android Lounge' started by UziTech, Nov 18, 2010.

  1. UziTech

    UziTech New Member
    Thread Starter
    5

    Feb 7, 2010
    3
    0
    5
    What are you supposed to put for whereArgs?

    Code (Text):
    1.  
    2. [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]
    3.  
    4. Since: [URL="http://developer.android.com/guide/appendix/api-levels.html#level1"]API Level 1[/URL]        
    5. Convenience method for deleting rows in the database.
    6.  
    7. [B]Parameters[/B]
    8.  
    9. table           the table to delete from
    10. whereClause           the optional WHERE clause to apply when deleting. Passing null will delete all rows.                  
    11. [B]
    12. Returns[/B]
    13.  
    14. 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
     

    Advertisement

Share This Page

Loading...