时间:2021-07-01 10:21:17 帮助过:2人阅读
CREATE SEQUENCE [schema_name . ] sequence_name [ AS [ built_in_integer_type | user-defined_integer_type ] ] [ START WITH <constant> ] [ INCREMENT BY <constant> ] [ { MINVALUE [ <constant> ] } | { NO MINVALUE } ] [ { MAXVALUE [ <constant> ] } | { NO MAXVALUE } ] [ CYCLE | { NO CYCLE } ] [ { CACHE [ <constant> ] } | { NO CACHE } ] [ ; ]
start with 设置起始值
increment by 设置增长间隔
min和max分别设置最小和最大值
cycle设置是否循环
cache指定缓存的设置
SQL Server 2012 开发新功能 序列对象(Sequence)(转)
标签: