Search the Blog

Saturday, July 13, 2019

Insert Query in SQL Server


This post have all the query and synatx which a biggner and experianced SQL  users need to know and use in their daily working Life.

 Top 100+ Sql Server Interview Questions

 

There are for different  kind of requriment to insert into table so all of that are here-


SQL Complete

1- Template for all columns update -
insert into Table_name value('ABC','ART','',.....,'Value n')
--   Note data type of each column should be  match

2- Template for slelect columns  update --
insert into Table_name(col_1,col_2,,,,,,,, col_n)  value ('ABC','ART','',.....,'Value n')

3- If all rows have to be fill up
insert Into Parameter_Blood_Group values('B0100A000004', 'GEN00A000001','AB-','AB-','0','2','Approved','','2019-05-04 17:27:58.913')

4- If select rows have to be fill up
insert Into Parameter_Blood_Group(URN_No,Co_code) values('B0100A000004', 'GEN00A000001')


Insert Query in SQL Server









No comments:

Post a Comment

Translate