-
Notifications
You must be signed in to change notification settings - Fork 13
Insert statement
Tako Lee edited this page Feb 16, 2014
·
24 revisions
-
Fit into one line if possible
INSERT INTO dbo.Points (PointValue) VALUES (CONVERT(Point, '3,4'));
-
Column list/value list fit into one line if possible
-
VALUES keyword left align with INSERT keyword
INSERT INTO MyLinkServer.AdventureWorks2008R2.HumanResources.Department (Name, GroupName) VALUES (N'Public Relations', N'Executive General and Administration');
-
VALUES keyword right align with INTO keyword
INSERT INTO MyLinkServer.AdventureWorks2008R2.HumanResources.Department (Name, GroupName) VALUES (N'Public Relations', N'Executive General and Administration');
-