如何创建数据库

使用MySQL命令,显示创建的数据库
show create database mysqldb;
可以查看mysqldb数据库的相关信息(例如MySQL版本ID号、
默认字符集等信息)。
如何删除数据库
DROP DATABASE语句的语法如下:
DROP DATABASE 数据库名
• 可以在MySQL命令行工具中使用下面语句删除数据库MySQLDB:
DROP DATABASE MySQLDB;

约束类型

数值类型

日期和时间类型

字符串类型

创建表


使用MySQL命令,显示创建的数据库
show create database mysqldb;
可以查看mysqldb数据库的相关信息(例如MySQL版本ID号、
默认字符集等信息)。
DROP DATABASE语句的语法如下:
DROP DATABASE 数据库名
• 可以在MySQL命令行工具中使用下面语句删除数据库MySQLDB:
DROP DATABASE MySQLDB;
本文标题:mysql语句
本文链接:https://www.haomeiwen.com/subject/pqwwxqtx.html
网友评论