I am trying to add a large number of rows into a SQL Server table, but I need to sequence the numbers by adding 1 to two columns in the Insert INTO
command. How can I tell the next line that is added to add one to the previous number for a specific column?
I am trying to add to the PartID
and Sequence
columns when the column does not allow duplicate numbers?
The is the query I am using
INSERT INTO JobParts(JPListID, PartID, Quantity, ReplacementPercent, Sequence, FlatRateExceptCode, Fluid, Replaced)
VALUES ('1', '670', '1', '100.00', '25', '0', 'False', 'False');
go 50