创建数据库(设置字符集utf8)
CREATE SCHEMA `hello` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
创建表
CREATE TABLE `hello`.`user` (
`id` INT NOT NULL,
`name` VARCHAR(45) NULL,
PRIMARY KEY (`id`));
插入数据
INSERT INTO `hello`.`user` (`id`, `name`) VALUES ('1', '小明');
INSERT INTO `hello`.`user` (`id`, `name`) VALUES ('2', '小李');
删除表
DROP TABLE `hello`.`user`;
删除数据库
DROP DATABASE `hello`;