的确从第一个sql中accounts表结构可以知道accountid是主键,而且是自增长的。

发布时间:2024-05-16 19:04 发布:上海旅游网

问题描述:

如果按你所说,第二个sql文件中插入的值
insert into accounts values
('user', 'localhost', '110', 'POP3', 'user', 'password', ''),
('user', 'localhost', '143', 'IMAP', 'user', 'password', '');
应该也是没有问题的啊,你可以按第一个sql文件中acconuts表的结构可知
create table accounts
(
username char(16) not null,
server char(100) not null,
port int not null,
type char(4) not null,
remoteuser char(50) not null,
remotepassword char(50) not null,
accountid int unsigned not null auto_increment primary key
);
您给的那个插入值的acconutid放到第一个了,与这个表的结构不符合了,不知我讲的对不对。

问题解答:

的确从第一个sql中accounts表结构可以知道accountid是主键,而且是自增长的。这个旅游问答期待您的解答,请登录账号或关注微信公众号回答这个问题。

热点新闻