У меня есть таблица под названием notifications
, и у меня есть id auto_increment primary key
.действительно странная проблема в auto_increment
Полная структура таблицы.
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL auto_increment,
`user_id` int(11) NOT NULL,
`sender_id` int(11) NOT NULL,
`sender_picture` varchar(300) NOT NULL,
`title` varchar(300) NOT NULL,
`message_link` varchar(500) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`status` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Теперь проблема заключается в том, что auto_increment следует вставить запись, как показано ниже.
1 record
2 record
3 record
Но его действительно странно, почему мой phpmyadmin
показать мне запись, как показано ниже.
1 record
3 record
2 record
Есть ли options
мне нужно установить в phpmyadmin
.
Thank you.
+1 за интересный вопрос. –