设计一张图书表,包含以下字段:图书名称,图书作者、图书价格、图书分类:
第一步drop删除数据库中的原有的book表
第二步创建book
a. book_name varchar(20), 名字默认值,防止名字过长
b. book_price decimal(4,2), eg:111.11
drop table if exists book;
create table book(
name varchar(20),
author varchar(20),
price decimal(4,2),
category varchar(20)
);
设计一张老师表,包含以下字段:姓名、年龄、身高、体重、性别、学历、生日、身份证号
drop table if exists teacher;
create table teacher(
name varchar(20),
age int,
height double,
weigh