数据库操作创建表# CREATE TABLE `table_user`( `id` INT(1) NOT NULL UNSIGNED AUTO_INCREMENT, `name` VARCHAR(20) NOT NULL, `email` VARCHAR(50) NOT NULL, `dssc` TEXT, `create_time` TIMESTAMP, PRIMARY_KEY(`id`) )ENGIN=InnoDB DEFAULT CHARSET=utf8;CopyNOT NULL: 不允许空值AUTO_INCREMENT 自增ENGIN 设置存储引擎CHARSET 设置数据编码PRIMARY_KEY 设置主键UNSIGNED 无符号删除表#DROP TABLE `table_user`;Copy数据插入#INSERT INTO `table_user`(field1, field2, field3, ... fieldN) VALUES (value1, value2, value3, ...valueN);Copy数据查询## 批量查询SELECT * FROM `table_user`;# 查询某个字段列表SELECT name FROM `table_user`;# 过滤查询SELECT `name` FROM `table_user` WHERE id = 1;# 逻辑查询Copy