Although there is no reason (apart maybe from aesthetics) to use INSERT INTO SELECT when inserting a single row in a table, is there any difference between using this and INSERT INTO VALUES?
Although there is no reason (apart maybe from aesthetics) to use INSERT INTO SELECT
Share
Using the
INSERT INTO ... SELECTapproach allows you to pick your values from another table, based on some criteria.That might be a bit easier and more readable to write, rather than having to retrieve 20 values from your source table, stash them into temporary variables, just so you can then call your
INSERT INTO dbo.Destination(....) VALUES(......)statement…But in the end – it’s just an
INSERTstatement that inserts data – it’s really just a matter of personal preference and which approach is easier / more convenient to use….