Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Insert Multiple Records in Single Query ( Avoid Multiple Insert )
WhatsApp
Khargesh Rajput
9y
9.4
k
0
0
25
Blog
I have a table tbltest with 3 columns id, name, email.
If, I have to insert 4 records or more then i will write 4 insert queries to save records.
Like below screen.
And result will be 1 rows effected for each query.
We can avoid using multiple statements like as below in single statement.
Here we can use single statement and output is 4 rows effected.
I have shared the things which I have found new to me and will be helpful to others.
Thanks
Up Next
Create Temp Table and Insert Data in to Temp Table using Dynamic Query
Ebook Download
View all
Basic SQL Queries
Read by 19.4k people
Download Now!
Learn
View all
Membership not found