不大明白你的问题,假如是B列为X值的所有数据就不用LIMIT了。假如你要统计为X的数量或者总和可以用到count和sum函数select * from A where b='X'select count(*) from A where b='X'