【发布时间】:2019-09-26 16:05:17
【问题描述】:
我已经创建了一个序列:
create sequence mainseq as bigint start with 1 increment by 1
如何将此序列用作列的默认值?
create table mytable(
id bigint not null default mainseq -- how?
code varchar(20) not null
)
【问题讨论】:
标签: sql-server tsql sql-server-2012 sequence