#创建数据库
CREATE DATABASE m224;

#查看数据库
SHOW DATABASES;

#删除数据库
DROP DATABASE m224;

#切换数据库
USE DATABASE db1;

#创建数据库表
CREATE TABLE t_stu(id INT,NAME VARCHAR(100),
gender VARCHAR(10),brithday DATETIME,createtime TIMESTAMP);
SHOW TABLES;
#c查看表结构
DESC t_stu;`student`
DROP TABLE t_user;
ALTER TABLE t_stu RENAME student

INSERT INTO student(id,NAME,gender,brithday)
VALUES(1,'mary','女','2000-10-18');


