我想将自动增量值设置为某个值。
我使用 phpMyAdmin 来管理数据库。
但是在子标题表选项下的操作选项卡中缺少该字段。
表结构如下
CREATE TABLE IF NOT EXISTS `users` (
`uid` int(10) unsigned NOT NULL COMMENT 'Primary Key: Unique user ID.',
`name` varchar(60) NOT NULL DEFAULT '' COMMENT 'Unique user name.',
`pass` varchar(128) NOT NULL DEFAULT '' COMMENT 'User’s password (hashed).',
`mail` varchar(254) DEFAULT '' COMMENT 'User’s e-mail address.',
`theme` varchar(255) NOT NULL DEFAULT '' COMMENT 'User’s default theme.',
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT 'User’s signature.',
`signature_format` varchar(255) DEFAULT NULL COMMENT 'The filter_format.format of the signature.',
`created` int(11) NOT NULL DEFAULT '0' COMMENT 'Timestamp for when user was created.',
`access` int(11) NOT NULL DEFAULT '0' COMMENT 'Timestamp for previous time user accessed the site.',
`login` int(11) NOT NULL DEFAULT '0' COMMENT 'Timestamp for user’s last login.',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether the user is active(1) or blocked(0).',
`timezone` varchar(32) DEFAULT NULL COMMENT 'User’s time zone.',
`language` varchar(12) NOT NULL DEFAULT '' COMMENT 'User’s default language.',
`picture` int(11) NOT NULL DEFAULT '0' COMMENT 'Foreign key: file_managed.fid of user’s picture.',
`init` varchar(254) DEFAULT '' COMMENT 'E-mail address used for initial account creation.',
`data` longblob COMMENT 'A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future...',
PRIMARY KEY (`uid`),
UNIQUE KEY `name` (`name`),
KEY `access` (`access`),
KEY `created` (`created`),
KEY `mail` (`mail`),
KEY `picture` (`picture`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores user data.';
但是对于同一服务器中的其他数据库,我可以看到这个选项。
有人可以告诉它为什么丢失吗?