T-SQL 101: 128 Inserting Data into a Table using SQL Server T-SQL
To insert new rows into a table, you will mostly use the INSERT statement.
In the example above, I’ve inserted one row into the dbo.CinemaGroups table. There are a few aspects to this statement.
First, you should always use two-part names for the table i.e., use dbo.CinemaGroups not just CinemaGroups.
Second, there is an optional INTO keyword for INSERT statements. You can say INSERT INTO dbo.CinemaGroups. While I’m generally pretty pedantic about these things, I can’t see any value that the word INTO adds here and I don’t use it.
2025-03-12