自增主键强制修改:
set identity_insert tableName on
--在此范围内可以直接修改主键
set identity_insert tableName off
tableName: 为表名
自增主键强制修改:
set identity_insert tableName on
--在此范围内可以直接修改主键
set identity_insert tableName off
tableName: 为表名
MySQL设置表自增步长的方法示例。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M