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);

```
You can also do like this::

```
db.execSQL(String.format("DELETE FROM %s WHERE %s = %d",
                Table_NAME,Table_ColumnName,Integer.parseInt(Value)));

```

It will execute the statement Directly.

and as you have asked WhereClause means the ColumnNames and expression that you want to use. and Where args is String array so you need to pass argument values for Expression that you have written.

```
db.delete(Table_NAME, ColumnName+" = ", String[]{Value});

```