日期:2014-05-18 浏览次数:20429 次
select * from data where sku in (SELECT sku FROM `data` where sku ='40035059' and status=0 group by intPo order by id limit 1)
select * from data where sku in ( select sku from `data` where sku ='40035059' and status=0 group by intpo order by id limit 1 ) --这个limit 在in后面的括号里面就是不行的了
------解决方案--------------------
select * from data where sku in (SELECT sku FROM `data` where sku ='40035059' and status=0 group by intPo order by id limit 1)