What are WhereArgs


Last Updated:

  1. UziTech

    UziTech New Member This Topic's Starter

    Joined:
    Feb 7, 2010
    Messages:
    3
    Likes Received:
    0
    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...