-3

I am having a table which is having a single column which in unique as set auto incremented IDENTITY on. how to insert in that table ? or how to insert a new row in that table? i wanna use that row as a counter.

Edited:

This is my table schema:

CREATE TABLE [dbo].[extra](
    [id] [int] IDENTITY(1,1) NOT NULL
) ON [PRIMARY]

I am using sql server.

insert into extra(id) values (default).

This query showing an error.

StuartLC
  • 100,561
  • 17
  • 199
  • 269
waleedansari
  • 187
  • 1
  • 1
  • 15

1 Answers1

1

The same way you would insert in any other table:

insert into [tableName] default values;
Luaan
  • 59,957
  • 7
  • 91
  • 109