格局:
create database 数据库名 charset utf8; create table 表名(字段名1 字段类型 [字段属性], 字段名2 字段类型 [字段属性], ....); insert into 表名(字段名1, 字段名2, ...)values(值1, 值2, ...);
例如1:
create database demo1 charset utf8; create table info(id int auto_increment primary key, title varchar(50), email varchar(20), content text); insert into info( id, title, email, content)values(null, '明天咱们能够不上自习吗?', '1871151400@qq.com', '不能够');