(1,1) 在 SQL 中是什么意思? [英] What does (1,1) mean in SQL?

查看:41
本文介绍了(1,1) 在 SQL 中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(1,1) 在 SQL 中是什么意思?我的意思是在以下上下文中:

What does (1,1) mean in SQL? I mean in the following context:

create table PetOwner
(
    Id      int identity(1,1)
,   Name        nvarchar(200)
,   Policy  varchar(40)
)

推荐答案

Id int identity(1,1)中,第一个1表示ID的起始值,第二个1表示增量ID 的值.它将像 1,2,3,4.. 一样递增.如果它是 (5,2),那么它从 5 开始并以 2 递增,例如,5,7,9,11,...

In Id int identity(1,1), the first 1 means the starting value of ID and the second 1 means the increment value of ID. It will increment like 1,2,3,4.. If it was (5,2), then, it starts from 5 and increment by 2 like, 5,7,9,11,...

这篇关于(1,1) 在 SQL 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆