select *,case is_suspend when 3 then 1
when 1 then 2
when 2 then 3
when 0 then 4
End as myorder from plan where is_del = '0' ORDER BY myorder,created_at
求告知,在laravel里怎么写这个sql
...全文
24642打赏收藏
laravel写原生sql语句
select *,case is_suspend when 3 then 1 when 1 then 2 when 2 then 3 when 0 then 4 End as myorder from plan where is_del = '0' ORDER BY myorder,created_at 求告知,在laravel里怎么写这个sql