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!

SQL can I update a table with an array?

Status
Not open for further replies.

Starlitnight

Technical User
May 2, 2006
20
US
Bascially I want to UPDATE a particular column



Essentially I want to do the following:



ALTER PROCEDURE WriteStockStatus

(@asin varchar(10), @asinStockStatus varchar(15))

AS

UPDATE OnSale

SET StockStatus=@asinStockStatus

WHERE ASIN=@asin



Ok, but, I don’t want to have to call this thing 16 times to update 16 rows.

Is there a way I can pass the two variables as a table or two arrays or something?



 
Perhaps you are looking for forum961? This is the Microsoft Access Jet SQL forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top