How to insert bulk information into database in single query execution

insert
sql
bulk
database

Basically the basic inserting query in sql is 

INSERT INTO tbl_name (a,b,c) VALUES(1,2,3);

but i need to insert n number of rows in a single query execution. like below 

INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);

or 

INSERT INTO tbl_name VALUES (1,2), (5,5);

 

 

You might also like:

Functions in javascript

25-05-2018 functions javascript es5 es6 arrow functions named functions Closures Nested Functions Callbacks Arrow functions.

Example for Conditional Operator in php

16-04-2017 php Conditional Operator example

Sanitization in java sript

14-03-2017 sanitization java script

Get previous date from given date in javascript

06-03-2017 date javascript previous date

How to get drop down value when drop down change using javascript

27-02-2017 onchange events dropdown javascript functions