How To Batch Insert Rows In MSSQL Database Server Tutorial Example
Run microsoft sql server management studio query editor or any client tools you like then copy & paste the below code to batch insert into a table usinq sql command or statement in MSSQL Database Server Tutorial Example
INSERT INTO executives
VALUES ('Moshraf Hossain','Technology','2010-01-01', 30000),
('Dipa','Mediation','2010-01-01', 35000),
('Asfarah','Billing System','2006-01-01', 30000)
/* CREATE TABLE executives ( lastname varchar(50) NOT NULL, department varchar(50) NULL, join_date date NULL, salary numeric(18, 0) NOT NULL ) ON [PRIMARY] */ create table using above code; if it is not created yet before batch inserting. /* */ is multiline code comments in MSSQL -- is comment in MSSQL -- in fact it is comment in Oracle and MySQL as well

No comments:
Post a Comment
leave your comments here..