Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
Training
Live
JOBS
MORE
CAREER
MEMBERS
Insert Multiple Records in Single Query ( Avoid Multiple Insert )
Khargesh Rajput
Feb 25, 2015
8.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will learn how to Insert Multiple Records in Single Query.
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
Next Recommended Reading
Create Temp Table and Insert Data in to Temp Table using Dynamic Query