method insertIgnore documentation in bbn\Db

If not exist inserts row(s) in a table, else ignore.

$db->insertIgnore( "table_users", [ ['id' => '19', 'name' => 'Frank'], ['id' => '20', 'name' => 'Ted'], ] );

function($table, array $values = NULL) { return $this->insert(\is_array($table) ? array_merge($table, ['ignore' => true]) : $table, $values, true); }

If not exist inserts row(s) in a table, else ignore. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.