Alexandre
Alexandre

Reputation: 13328

Insert into table which has only one column

There's a table with one column - MyTable(ID), where ID is primary key with identity(1,1). How to insert one row into this table by stored procedure?

 CREATE PROC MyProc
 AS
 INSERT INTO [dbo].[MyTable] VALUES()

Upvotes: 0

Views: 82

Answers (1)

Endy Tjahjono
Endy Tjahjono

Reputation: 24500

insert into mytable default values

Upvotes: 5

Related Questions