56,685
社区成员
发帖
与我相关
我的任务
分享
mysql> select count(*) from goods
-> where goodsid
-> in(SELECT goodsid FROM goodsatt WHERE cid=200);
+----------+
| count(*) |
+----------+
| 169039 |
+----------+
1 row in set (7.00 sec)
mysql> select count(*) from goods a,goodsatt b
-> where (a.goodsid=b.goodsid and b.cid=200);
+----------+
| count(*) |
+----------+
| 172083 |
+----------+
1 row in set (2.63 sec)