主题:求获取在column列里值等于某值的所有写法
yl2006
[专家分:0] 发布于 2007-02-04 08:53:00
Select * from [table] where [column]=
"word1","word2","word3","word4"
意思是上面这个意思
不过该怎么写啊 我想知道所有的写法
回复列表 (共3个回复)
沙发
Web乐水 [专家分:1050] 发布于 2007-02-04 10:30:00
Select * from [table] where [column]=
"word1","word2","word3","word4"
比如等于"word4"
就这样啊Select * from [table] where [column]="word4"
板凳
菜鸭 [专家分:5120] 发布于 2007-02-05 08:01:00
Select * from [table] where [column] in
('word1','word2','word3','word4')
3 楼
Leo64823900 [专家分:960] 发布于 2007-02-05 09:43:00
Select * from [table]
where [column]="word1"
or [column]="word2"
or [column]="word3"
or [column]="word4"
我来回复