时间:2021-07-01 10:21:17 帮助过:20人阅读
select
*
from
a
INNER
JOIN
b
on
a.a = b.b;
left join:(A表所有,B表交集或空)
select
*
from
a
LEFT
JOIN
b
on
a.a = b.b;
right join:(B表所有,A表交集或空)
select
*
from
a
RIGHT
JOIN
b
on
a.a = b.b;
(5)事务:开启一个事务,进行一堆数据库操作语句集合构成一个事务(begin开会一个事务,rollback回滚,commit确认,中间就是事务包含的操作)
mysql基础命令_mysql
标签:font begin auto 建立 sele 更新 server ble 多次