引入DB类
ILLumnate\Support\Facades\DB
db查询语句
DB::select("select * from user")
db删除语句
DB::delete("delete * from user")
db修改语句
DB::update("update set name='111' from user where id=1")
db添加语句
DB::insert("insert into uses('name','password') value(111,2222)")
删除一个表
DB::statement("drop table users")
标签:laravel,语句,db,DB,111,user,改查 From: https://www.cnblogs.com/96net/p/17209152.html