Click here to Skip to main content
15,886,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have the following sql command which inserts a defined number of rows into a table

INSERT INTO table1(column1, column2) VALUES ('1','2'), ('3','4'), ('5','6')

how can i use c# to make such a query given that the number of rows are not defined. I would want to use a loop to add columns as determined by the user. I tried lookin for solutions but couldnt get an understandable one. Any form of help will be appreciated
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900