Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQl query

Status
Not open for further replies.

saina

Programmer
Joined
Jan 19, 2006
Messages
8
Location
US
I have a query which fetches necessary data for all the employees. But now i have to get data for specific people whose employee ids and names are provided.
My question is can i hardcode like
select........
from.......
where empid="12","23"..


 
... where empid in (12,23,...) ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top