SELECT a.ppid FROM shop_order a, (select ppid from shop_order where (status in (2,3,5)) group by ppid having (count(ppid)>=1 and count(ppid)<=5)) b WHERE a.ppid=b.ppid
thinkphp 模型语句该怎么写呢
...全文
2554打赏收藏
原生sql语句转thinkphp
SELECT a.ppid FROM shop_order a, (select ppid from shop_order where (status in (2,3,5)) group by ppid having (count(ppid)>=1 and count(ppid)<=5)) b WHERE a.ppid=b.ppid thinkphp 模型语句该怎么写呢