MySQL(第四周)
mysql -u root -p
show databases;
create database 23五年制网络;
use 23五年制网络;
create table book(
图书编号 char(20) not null primary key,
图书类别 varchar(20) not null default '计算机',
书名 varchar(40) not null,
作者 char(10) not null,
出版社 varchar(20) not null,
出版时间 date not null,
单价 float(5) not null,
数量 int(5),
折扣 float(3),
封面图片 blob
);
create table book1(
图书编号 char(20) not null primary key,
图书类别 varchar(20) not null default '计算机',
书名 varchar(40) not null,
作者 char(10) not null,
出版社 varchar(20) not null,
出版时间 date not null,
单价 float(5) not null,
数量 int(5),
折扣 float(3),
封面图片 blob
);
show tables;
desc book;
=====================================