MySQL 数据没有显示
MySQL data show nothing
我在 mysql 数据库中插入韩语字符。
但数据什么也没显示。以及在 PhpMyAdmin 中。
任何人都知道问题是什么以及如何解决?
消息说 [不正确的整数值:第 1 行 'sido_id' 列的“”]
create table sido (
sido_id int(11) not null auto_increment,
sido_name varchar(15) not null,
primary key(sido_id)
)
ENGINE = MyISAM DEFAULT CHARSET utf8;
insert into sido (sido_id,sido_name) values ('','서울');
sido_Id
是 AUTO_INCREMENT
并且数据类型是 INT()
你在做什么?您在此列中插入空字符串。
AUTO_INCREMENT
列无需使用空字符串。你可以这样使用:
INSERT INTO sido (sido_name) VALUES ('서울');
我在 mysql 数据库中插入韩语字符。 但数据什么也没显示。以及在 PhpMyAdmin 中。 任何人都知道问题是什么以及如何解决?
消息说 [不正确的整数值:第 1 行 'sido_id' 列的“”]
create table sido (
sido_id int(11) not null auto_increment,
sido_name varchar(15) not null,
primary key(sido_id)
)
ENGINE = MyISAM DEFAULT CHARSET utf8;
insert into sido (sido_id,sido_name) values ('','서울');
sido_Id
是 AUTO_INCREMENT
并且数据类型是 INT()
你在做什么?您在此列中插入空字符串。
AUTO_INCREMENT
列无需使用空字符串。你可以这样使用:
INSERT INTO sido (sido_name) VALUES ('서울');