Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i have a question about database:
i have a table contain id , name , username.and an rray list like this one
data=[(1,'jhon','jj'),(2,'bob','bb'),(3,'fd','fd')]
i want to insert this array into the database at once (only one query).
any help ?

What I have tried:

i used for loop but it take times!
Posted
Updated 17-Mar-17 1:08am
Comments
Richard MacCutchan 17-Mar-17 7:02am    
Insert it where?
Member 11436383 17-Mar-17 7:07am    
into table info which contain id name and username as column

1 solution

 
Share this answer
 
Comments
Member 11436383 17-Mar-17 7:41am    
Thank you

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