How can I change the style for insert Values to be Placed subsequent items on a new line?
dmckee11
Posts: 4 New member
in SQL Prompt
I would like all my subsequent Values to be placed on a new line. I see where I can do this for Lists. But I also want this to be done for my Values when I do an Insert.
example of how code looks:
INSERT (
PharmacyId
,OrderListTypeId
,SearchId
,PackageSize
,CreatedById
,CreatedDate
)
VALUES (
cte.Id, cte.OrderListTypeId, cte.SearchId, cte.PackageSize, 1, GETDATE()
);
This is how I would like it to look:
INSERT (
PharmacyId
,OrderListTypeId
,SearchId
,PackageSize
,CreatedById
,CreatedDate
)
VALUES (
cte.Id
,cte.OrderListTypeId
,cte.SearchId
,cte.PackageSize
,1
,GETDATE()
);
example of how code looks:
INSERT (
PharmacyId
,OrderListTypeId
,SearchId
,PackageSize
,CreatedById
,CreatedDate
)
VALUES (
cte.Id, cte.OrderListTypeId, cte.SearchId, cte.PackageSize, 1, GETDATE()
);
This is how I would like it to look:
INSERT (
PharmacyId
,OrderListTypeId
,SearchId
,PackageSize
,CreatedById
,CreatedDate
)
VALUES (
cte.Id
,cte.OrderListTypeId
,cte.SearchId
,cte.PackageSize
,1
,GETDATE()
);
Tagged:
Best Answers
-
dmckee11 Posts: 4 New memberI had 8.1..... I ran the update to receive 8.2 and found the Values section for Insert Statement and was able to choose my desired layout. Thank you.