注册 登录
编程论坛 SQL Server论坛

SQL查询求助

andyhuang66cn 发布于 2008-09-06 09:32, 1432 次点击
求一条SQL语句,按一个条件查询,传两个值。就好象这样:select * from table where id=要传的值(有两个).各位高手帮帮忙。谢谢
9 回复
#2
happynight2008-09-06 10:49
select * from table where id IN(##,##)
#3
andyhuang66cn2008-09-06 15:54
thank you!
#4
lwh01032008-09-07 08:12
select * from table where id IN(输入两个要传入的值,用逗号格开)
#5
yzx3142008-09-08 15:11
新手
``·~·
#6
雅客_雪痕2008-09-08 15:31
好!
#7
球球2008-09-08 21:55
select * from table where id=*** or id=***
#8
不懂法2008-09-15 10:57
select * from table where id=*** or id=***
#9
iorivsmu2008-09-16 10:55
用or不行,用or只会选择一个.in是包含的意思
#10
夜の枫2008-09-16 13:20
用or 是可以的啊,我试过了!!~
1