求改动sql语句让他不报错
select a.cs, a.COUNT(*)as 'A表' ,b.COUNT(*) as 'B表',c.COUNT(*) as 'C表'
from A as a ,B as b, C as c where a.cs='a' or a.cs='b' or a.cs='c' group by a.cs
你是想统计A,B,C表的记录数,你那语法都有问题
select cs,A表,B表,C表
from
(select count(*) as 'A表' from b)b,
(select count(*) as 'B表' from c)c,
(select cs,count(*) as 'C表' from a where a.cs in('a','b','c') group by cs)a