tp6 column方法 php7.4 报错

浏览:1531 发布日期:2022/01/04
5.0.0 - 普通 - 已关闭
//不正常
UserModel::where('id', 'in', '1,2,3')->column('*', 'id');
//正常
Db::table('user')->where('id', 'in', '1,2,3')->column('*', 'id');
//正常
UserModel::where('id', 'in', '1,2,3')->column('name', 'id');
//不正常
UserModel::where('id', 'in', '1,2,3')->column('name,age', 'id');
评论(
后面还有条评论,点击查看>>