Question: I created a form in wordpress but this code isn't work .

```
<?php

$metaname = $wpdb->escape($_REQUEST['apply_name']);
$metakey = $wpdb->escape($_REQUEST['apply_email']);
$metavalue = $wpdb->escape($_REQUEST['regcat']);

$wpdb->query($wpdb->prepare(
                "
        INSERT INTO $wpdb->jz_users
        ( user_login, user_email, category )
        VALUES ( %d, %s, %s )
    ", array(
            $metaname,
            $metakey,
            $metavalue
                )
        ));
?>

```

Answer: 
You could use a query like this:

```
db.execSQL("DELETE FROM " + TABLE_NAME +
           " WHERE " + currentdate + " - " + TIMESTAMP_DB + " > 2*24*60*60");

```

For the `update` method, write the SQL expression in the `WHERE` clause in the `whereClause` parameter; `whereArgs` is needed only for string values:

```
db.update(TABLE_NAME, currentdate + " - " + TIMESTAMP_DB + " > 2*24*60*60", null);

```
```
public void deleteContact(Integer id) {
        SQLiteDatabase db = this.getWritableDatabase();
        db.delete("AddressList",
                "id = ? ",
                new String[]{Integer.toString(id)});
}

```

or

you can use raw SQL query to Delete row

```
public void deleteContact(Integer id) {
  SQLiteDatabase database = this.getWritableDatabase();
 String s = "DELETE FROM AddressList WHERE item_id=" + id;
database.execSQL(s);
}

```

here **AddressList** is your **TABLE** name