select * from Table1 where fieldname = 'a' or fieldname = 'b' or fieldname = 'c'
上面的语句可以写成
select * from Table1 where fieldname in ('a', 'b', 'c')
有什么办法可以简写'and'语句
select * from Table1 where fieldname = 'a' and fieldname = 'b' and fieldname = 'c'
更新:考虑情况
fieldname ID
--------------------
a 1
a 2
b 3
c 4
b 5
a 6