mqsql8.0.31数据库表操作
-- 表操作
-- 建立表
create table t1(t int);
show create table t1;
CREATE TABLE `t1` (
`t` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3
-- 存储引擎
show engines;
-- 插入数据
insert t1 values(10),(20),(30),(40);
-- 查看当前数据库 名称
select database();
-- 查看当前数据库中所有表
show tables;
-- 查询表
select * from t1;
-- 建立表
create table t_student(
sno int UNSIGNED auto_increment