sql查询与自动增量 [英] sql query with auto increament
本文介绍了sql查询与自动增量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以创建一个字段自动增量的表吗?
解决方案
是!
将其设为标识栏 [ ^ ] with with已定义的增量步骤。
您必须使用列的标识属性
生成标识
:是
身份种子
- 从哪个值开始
身份增量
- 按值增加
你可以创建像
创建的表格 table a
(id int 身份( 1 , 1 ))
Hi,
Can i create a table with a field auto increment?
解决方案
Yes!
Make it an Identity column[^] with a defined increment step.
You have to use Identity propertes for the column
MakeIdentity
: Yes
Identity Seed
- From which valule will ne start
Identity Increment
- Incremented by value
u can create table like
create table a (id int identity(1,1))
这篇关于sql查询与自动增量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文