MySQL的SQL语句分类

MySQL官方SQL大致可以分为下面的这些
MySQL的SQL语句分类

第一种:Data Definition Statement,数据定义语句,主要有altercreatedroprenametruncate这些,具体看下图:
MySQL的SQL语句分类
MySQL的SQL语句分类
第二种:Data Manipulation Statement,数据操纵语句,主要有calldeletedohandlerimportloadinsertreplaceselectupdate,具体看下图:
MySQL的SQL语句分类
第三种:Transactional and Locking Statements,事务和锁语句,主要有start trasactioncommitrollbacksavepointlockset transaction这些,具体看下图:
MySQL的SQL语句分类
第四种:Replication Statements,复制语句,主要有主服务器复制从服务器复制组复制,详细看下图:
MySQL的SQL语句分类
第五种:Prepared Statement SQL,预编译的SQL语句,主要有preparedexecutedeallocate prepare这些,具体图下图:
MySQL的SQL语句分类

第六种:Compound-Satement,复合的语句,可以组装多条SQL,具体如下图:
MySQL的SQL语句分类
第七种:Database Administration,数据管理语句,如下图所示:
MySQL的SQL语句分类
第八种:Utility Statements,工具语句,主要有deschelpexplainuse这些,具体卡下图:
MySQL的SQL语句分类