select * from userresult_f where askid=800808 and uid=110996854;
mysql> select sum(askid=800808),sum(uid=110996854) from userresult_f\G; *************************** 1. row *************************** sum(askid=800808): 6 sum(uid=110996854): 2 1 row in set (0.00 sec)
原文地址:http://blog.csdn.net/dba_waterbin/article/details/24597631