Pradeep pai
Pradeep pai

Reputation: 11

searching for microsoft sql server equivalent of postgresql form

SELECT nextval('AWARD_ID')

I am getting nextval as not built in function name in MS SQL Server. Kindly give any alternative if there is any.

Upvotes: 0

Views: 163

Answers (2)

Harsh
Harsh

Reputation: 1319

Do you mean something like IDENT_CURRENT():

select IDENT_CURRENT('FOO') + IDENT_INCR('FOO')

Upvotes: -1

wilx
wilx

Reputation: 18228

It seems you are looking for SELECT NEXT VALUE FOR award_id.

Upvotes: 2

Related Questions