Laravel數據庫CRUD操做

1、增 // 返回插入數據的bool值 DB::insert('insert into student(name, age) values(?, ?)', ['imooc', 19]); DB::table('student')->insert(['name' => 'imooc', 'age' => 18]); // 返回插入數據的id DB::table('student')->insert
相關文章
相關標籤/搜索