[英]How can i set an autoincrement to tinyint field in sql server compact?
I want to set a tinyint field as autoincrement, but table constructor dont let me do it. 我想将tinyint字段设置为autoincrement,但是表构造函数不允许我这样做。 But he lets to int and bigint types. 但是他让int和bigint类型。 Whats the problem? 有什么问题?
Here is the screenshot: http://gyazo.com/ce8d345ee94bf26e833fe16133b5eee5.png 这是屏幕截图: http : //gyazo.com/ce8d345ee94bf26e833fe16133b5eee5.png
The first row "Идентификация" is an Identity field in English. 第一行“Идентификация”是英语中的“ 身份”字段。
SQL Server Compact仅支持具有IDENTITY的int和bigint
First of all, why do you use TinyInt? 首先,为什么要使用TinyInt? TinyInt has a range from -128 to +127, so is is not very well suited for auto_increment columns. TinyInt的范围是-128到+127,因此不适用于auto_increment列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.