join 方法不稳定

浏览:207 发布日期:2018/07/03
5.0.0 - 严重 - 未处理
$roster->alias('a')->where($new1_map)->whereTime('b.process_state_time','today')->join('__TIME_FLOW__ b ',' a.id=b.ros_id')->count();
像这句无缘无故就报错base table or view not found: 1146 Table 'jx_jzgl_5020.b' doesn't exist;
$roster->where($new1_map)->join('__TIME_FLOW__ ',' __ROSTER__.id=__TIME_FLOW__.ros_id')->count();
有时像这样子不用别名也会报错,改成用别名就不会了
评论(
后面还有条评论,点击查看>>