09 2018 档案

摘要:乱码即字符集有问题,本篇将介绍mysql字符集及插入中文数据乱码问题的解决方式 1.mysql字符集 GBK 不是国际标准 UTF-8 中英文混合的环境,建议使用此字符集,用的比较多 Latin1 mysql的默认字符集 urf8mb4 UTF-8 Unicode 2.解决插入中文数据乱码问题 2. 阅读全文
posted @ 2018-09-19 16:10 时光浅夏wk 阅读(1534) 评论(0) 推荐(0)
摘要:1.insert介绍 insert into <表名>(字段名) values (值) 例: create table test ( id int(4) not null auto_increment, name char(20) not null, primary key(id) ) ; 1.1) 阅读全文
posted @ 2018-09-16 09:23 时光浅夏wk 阅读(419) 评论(0) 推荐(0)
摘要:1.表 1.1)建表 create table student( id int(4) not null,name char(20) not null,age tinyint(2) not null default '0',dept varchar(16) default null); show cr 阅读全文
posted @ 2018-09-06 15:17 时光浅夏wk 阅读(2245) 评论(0) 推荐(0)