Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert into Table that has nothing but ID?

Author  Topic 

calvinfoo
Posting Yak Master

129 Posts

Posted - 2011-05-11 : 23:41:48
Dear Gurus,
I have a table as below

CREATE TABLE #MYTABLE (myID INT IDENTITY(1,1))

1. how do I insert rows ino the table above? The problem is the table has nothing but just myID

calvinfoo
Posting Yak Master

129 Posts

Posted - 2011-05-12 : 00:02:27
Hi Gurus,

I've figured it out:
INSERT #MYTABLE DEFAULT VALUES
Go to Top of Page
   

- Advertisement -