Laravel 的 查询构造器是不是不支持位运算啊?
$status = ArticlesStatus::where('status >> 2 & 1',' =',1)->select();
dd($status->toSql());
结果
select * from
articles_status
wherestatus >> 2 & 1
= ?
正确的结果应该是
select * from
articles_status
wherestatus
>> 2 & 1 = ?
这个解析SQL有解决办法吗?
推荐文章: