- 创建:
create database [if not exists] 数据库名称 [default charset 字符集] [collate 排序规则];
(PS:方括号(“[]”)内的为可选项;字符集推荐使用utf8mb4;) (意义:[if not exists]意义为若数据库内已存在该名称的数据库则不执行;)
* 删除:
drop database [if exists] 数据库名称;
(PS:方括号(“[]”)内的为可选项;) (意义:[if exists]意义为若数据库存在则执行删除;)
Original: https://www.cnblogs.com/TeaTracing/p/16366783.html
Author: TeaTracing
Title: SQL的语法
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/505294/
转载文章受原作者版权保护。转载请注明原作者出处!