P5 5.基础篇:SQL通用语法及分类
https://www.bilibili.com/video/BV1Kr4y1i7ru?p=5

SQL通用语法

SQL分类

P6 6.基础篇:SQL-DDL-数据库操作
https://www.bilibili.com/video/BV1Kr4y1i7ru?p=6
数据库增删改查

举例:
create datebase mydb default charset utf8; /*建立数据库并使用3字节的utf8字符(目前mysql默认)*/
create datebase udb default charset utf8mb4;/*建立数据库并使用4字节的utf8字符(目前须手动指定)*/
P7 7.基础篇:SQL-DDL-表操作-创建和查询
https://www.bilibili.com/video/BV1Kr4y1i7ru?p=7
表查询命令:
查询当前数据库所有表: SHOW TABLES;
查询表结构: DESC 表名;
查询表结构:SHOW CREATE TABLE 表名;
表创建命令:CREATE TABLE

示例
use mydb; /*使用上例刚刚建立的数据库mydb*/
create table tb_user(
id int comment '编号',
name varchar(50) comment '姓名',
age int comment '年龄',
gender varchar(1) comment '性别',
)comment '用户表';

