delete row psql code example
Example 1: delete entries in postgresql
DELETE FROM table WHERE condition;
Example 2: delete all entries postgres
DELETE FROM tablename;
Example 3: delete row psql
DELETE FROM table
WHERE condition;
Example 4: delete entries in postgresql
DELETE FROM table
USING another_table
WHERE table.id = another_table.id;
Example 5: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}