Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Newbie in SQL Server

Author  Topic 

kalyformin
Starting Member

15 Posts

Posted - 2006-11-15 : 19:57:20
This is kind of stupid, but is there a way to specify morethan one arguments in the Where clause.

Something like,

select * from MyTable where ID = 1,2,3,4,.. etc?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-11-15 : 20:10:46

select * from MyTable where ID in( 1,2,3,4,.. etc)


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-11-15 : 20:12:43
Also you need to learn SQL

http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -