sql server - Pass array on to sql and insert it in link table with one value -


i've found ways pass array stored procedure , ways insert table table. want insert array in table column2 1 other value have value column1:

insert table1 (column1, column2)   values (select @value, column2 @othertable) 

i tried inserting array column2 first , updating column1 1 value. didn't work , insanely expensive anyway.

is there reasonable way this?

if i'm understanding correctly, need rid of values, so:

insert table1 (column1, column2) select @value, column2 @othertable; 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -