我的表名是Pattern
S.No type Id_Section
1 A IPS
2 A IPS
3 A IPS
4 A IPS
1 B IPS
2 B IPS
3 B IPS
1 C IPS
2 C IPS
1 D IPS
2 D IPS
我想要一个查询来计算记录除了type =“c”记录...我试过和示例..但我得到了整个记录数...请任何人帮助我..
答案 0 :(得分:1)
SELECT count(*)
FROM pattern
WHERE type <> 'C'
答案 1 :(得分:0)
SELECT COUNT(*) FROM Pattern WHERE type != 'C'
我理解你了吗?