How To Empty Or Truncate Mysql Tabular Array Using Codeigniter Active Record?
If you lot desire to empty or truncate a mysql tabular array using Codeigniter active record, role the next code.
To empty
To empty
$this->db->empty_table();This volition generate a delete SQL string too runs the query.
// DELETE FROM mytableTo truncate
$this->db->from('mytable'); $this->db->truncate(); // or $this->db->truncate('mytable');This volition generate a truncate SQL string too runs the query.
// TRUNCATE mytableSource: http://www.learnhow2do.com/computer/internet/2013/04/13/learn-how-to-empty-or-truncate-table-using-codeigniter-active-record/ Sumber http://developer-paradize.blogspot.com
Comments
Post a Comment