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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using varchar list with a select query

Status
Not open for further replies.

yfatgo

Programmer
Mar 8, 2004
8
IL
using the COALESCE function im creating a string to have a list of users sperated by a comma, now how can i use it in a sql select query ?

meaning :
I want to do a select query like that :
select * from tb1 where UserId in @UserList

where the UserList is the list i got with the COALESCE function.
 
These should give you some ideas
Passing a list of values to a Stored Procedure faq183-3979
Passing a list of values to a Stored Procedure (Part II) faq183-5207


Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top