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

```
```
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