I just created a table in SQL 2008. This table has two columns.
CREATE TABLE [dbo].[MyTable]
(
[pkey] [bigint] not null,
[Number] [int] not null
)
Now I want to insert values into it. The first column can be obtained from another table dbo.OldTable. It has many records and I don’t want to manually insert the data. The second column Number can be a 0 in each row. What is the best way to do this?
1 Answer