-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
  • 104,537
  • 17
  • 209
  • 285
waleedansari
  • 197
  • 1
  • 2
  • 16

1 Answers1

1

The same way you would insert in any other table:

insert into [tableName] default values;
Luaan
  • 62,244
  • 7
  • 97
  • 116