select * from products_category where order by if(MyOrder>0, MyOrder, if(MyOrder=0, 1000000, 1000001)) asc,CateId asc
连接数据表错误
错误代码: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by if(MyOrder>0, MyOrder, if(MyOrder=0, 1000000, 1000001)) asc,CateId asc' at line 1