March 2018
Intermediate to advanced
816 pages
19h 35m
English
The two demo tables are empty at the moment. You add data to them with the INSERT statement and you can specify the data values in the VALUES clause. You can insert more than one row in a single statement, as the following code shows, by inserting two rows into the dbo.SimpleOrderDetails table in a single statement. You can omit the column names in the INSERT part. However, this is not a good practice. Your insert depends on the order of the columns, if you don't specify the column names explicitly. Imagine what could happen if somebody later changes the structure of the table. In a bad outcome, the insert would fail. However, you would at least have the information that something went wrong. In a worse ...
Read now
Unlock full access