标签:必须 core col abi ons 提交 回滚 需要 name
create view stuscore as select students.*,scores.score from scores inner join students on scores.stuid=students.id;
select * from stuscore;
show create table students;
alter table ‘表名‘ engine=innodb;
开启begin;
提交commit;
回滚rollback;
终端1:
select * from students;
------------------------
终端2:
begin;
insert into students(sname) values(‘张飞‘);
终端1:
select * from students;
终端2:
commit;
------------------------
终端1:
select * from students;
终端1:
select * from students;
------------------------
终端2:
begin;
insert into students(sname) values(‘张飞‘);
终端1:
select * from students;
终端2:
rollback;
------------------------
终端1:
select * from students;
标签:必须 core col abi ons 提交 回滚 需要 name
原文地址:https://www.cnblogs.com/leecoffee/p/9038374.html