标签:复杂 隐藏 改变 类型 engine date 为什么 变更 tables
create view 视图名称 as select语句;
show tables;
drop view 视图名称;
例:
drop view v_stu_score_course;
select * from v_stu_score_course;
例:
学生表
班级表
create view v_student_info as select classes.c_name as ‘班级‘, students.name as ‘学生‘ from students inner join classes on students.cls_id=classes.id order by classes.id;
show create table students;
修改数据的命令会触发事务,包括insert、update、delete
开启事务,命令如下:
begin;
commit;
rollback;
标签:复杂 隐藏 改变 类型 engine date 为什么 变更 tables
原文地址:https://www.cnblogs.com/fengzi7314/p/9940126.html