当前位置:网站首页>Basic SQL server operation problems - only when lists are used and identity_ Only when insert is on can the display value be set for the identification column in the table
Basic SQL server operation problems - only when lists are used and identity_ Only when insert is on can the display value be set for the identification column in the table
2022-07-24 12:13:00 【coder i++】
Reprint :https://blog.csdn.net/xml1996/article/details/93420817
Insert multiple fields in the table
Question 1 : Only if a list is used and IDENTITY_INSERT by ON when , To set the display value for the identification column in the table

resolvent :
perform :
SET IDENTITY_INSERT Table name ON // Set to allow manual insertion of values
Re execution :
INSERT INTO Table name ( Field name )VALUES( To insert a field )
Be careful : Be sure to add Table field name
analysis :
SET IDENTITY_INSERT
Allows explicit values to be inserted into the identity column of a table .
grammar
SET IDENTITY_INSERT [ database.[ owner.] ] { table } { ON | OFF }
边栏推荐
- [Commons beanautils topic] 005- convertutils topic
- Buckle practice - 24 remove repeated letters
- 1184. Distance between bus stops: simple simulation problem
- QT notes - EventFilter event filter
- Force deduction exercise - 26 split array into continuous subsequences
- Three small knowledge points about data product managers
- L2-011 play with binary tree
- Aruba learning notes 04 Web UI -- Introduction to configuration panel
- C Advanced - data storage
- Skillfully using command line parameters in Delphi to realize the trigger function of dragging files onto program icons
猜你喜欢

Counter attack dark horse: devdbops training, give you the best courses!

Use and expansion of fault tolerance and fusing

What is prescaler in STM32

Conference publishing function of conference OA project

MySQL advanced (XVII) cannot connect to database server problem analysis

安装jmeter

【网络空间安全数学基础第3章】同余

L1-059 敲笨钟

【C和指针第14章】预处理器

Aruba learning notes 04 Web UI -- Introduction to configuration panel
随机推荐
三层交换机配置MSTP协议详解【华为eNSP实验】
安装jmeter
leetcode:51. N 皇后
Buckle practice - 27 score after turning the matrix
MySQL creates partition tables and automatically partitions them by day
Repeated calls, messages, idempotent schemes, full collation
第1章 引言
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
[C and pointer Chapter 14] preprocessor
Jackson parsing JSON detailed tutorial
QT notes - custom data types
TypeNameExtractor could not be found
makefile快速使用
Script redis write project notes
Oracle 11.2.0.4 ASM single instance does not start automatically with system startup
[C and pointer Chapter 11] dynamic memory allocation
Examples of map search
20000 words detailed explanation, thoroughly understand es!
Using huggingface model to translate English
CCF 1-2 question answering record (1)