tp5 column和field 路由

$res=Db::table('list_order')->order('Id','desc')->limit(10)->column('Id,title,author');
$res = Db::table('list_order')->order('Id','desc')->limit(10)->field('Id,title,author')->select();

Column
https://www.kancloud.cn/ldkt/tp5_db/229042
field
https://www.kancloud.cn/manual/thinkphp5/118077

$res=Db::table('list_order')->where('create_time','like',date('Y-m-d',time()).'%')->fetchSql(true);//打印sql语句->find(1)
fetchSql

https://www.kancloud.cn/manual/thinkphp5/118089
路由绑定
https://www.kancloud.cn/manual/thinkphp5/118040
看云链接
https://www.kancloud.cn/ldkt/tp5_db/229011
路由
https://www.kancloud.cn/thinkphp/route-master/223108

你可能感兴趣的:(tp5 column和field 路由)