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

Insert multiple values

Status
Not open for further replies.

abenitez77

IS-IT--Management
Oct 18, 2007
147
US
I have multiple values I want to insert into a table. I am building a query that will use parameters and I want to be able to insert multiple values.

table: users
column: username

parameter: @userlist

Set @userlist = 'bob,lucy,frank'

How can I insert these 3 users into users table using a query whithout knowing how many users will be added to the parameter userlist?
 
check FAQ for Split function.

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Thanks! worked like a charm. Great article.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top