/* $students=DB::select("select * from student"); var_dump($students);*/ //新增数据: /*$bool=DB::insert('insert into student(name,age) values(?,?)',['imooc',18]); var_dump($bool);*/ //更新数据: /*$num = DB::update('update student set age=? where name=?', [20, 'sean']); var_dump($num);*/ //查询数据: /*$students=DB::select("select * from student where id>?",[1001]); dd($students);*/ //删除数据: $num = DB::delete('delete from student where id>?', [1001]); var_dump($num);