select * from products_attr where CateId in(0,,0) 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 '0) order by if(MyOrder>0, MyOrder, if(MyOrder=0, 1000000, 1000001)) asc,CateId a' at line 1