查询条件带表别名:$where["sb.create_time"] = ['between time', [strtotime($params['start_date']), strtotime($params['end_date'])]];
Db::name('student_ba
se sb')->where($where)->......
提示:SQLSTATE[42S02]: base table or view not found: 1146 Table 'zhuzhiguang.sb' doesn't exist
如果去掉sb.前缀,又提示:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'create_time' in where clause is ambiguous
不知道是不是bug