thinkPHP输出sql语句(3.2和5.0通用)
时间:2021-07-01 10:21:17
帮助过:4人阅读
$qwe = db::table(‘think_user‘)->where(‘id‘,1)
->fetchsql()->column(‘name‘); dump($qwe);
//3.2
$asd = M(‘user‘)->where(‘id = 1‘)->field(‘name‘)
->fetchsql()->select(); dump(asd);
thinkPHP输出sql语句(3.2和5.0通用)
标签:span think div asd 语句 blog str ble field