select * from products where ProId!='0' andif(MyOrder>0, MyOrder, if(MyOrder=0, 1000000, 1000001))='1000000' and AccTime>'' order by AccTime asc limit 1
连接数据表错误
错误代码: 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 'andif(MyOrder>0, MyOrder, if(MyOrder=0, 1000000, 1000001))='1000000' and AccTime' at line 1