📜  laravel db inserr - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.996000             🧑  作者: Mango

代码示例5
DB::table('users')->insertOrIgnore([
    ['id' => 1, 'email' => 'sisko@example.com'],
    ['id' => 2, 'email' => 'archer@example.com'],
]);