刪除

2018-02-24 15:52 更新

刪除數(shù)據(jù)表中的數(shù)據(jù)

DB::table('users')->where('votes', '<', 100)->delete();

刪除數(shù)據(jù)表中的所有數(shù)據(jù)

DB::table('users')->delete();

清空數(shù)據(jù)表

DB::table('users')->truncate();
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)