谁知道这道关于mysql的题怎么做?

来源:百度知道 编辑:UC知道 时间:2024/06/08 07:31:32
在mysql中添加数据库exam,添加用户test,并赋予最大权限,建立数据表product(id int(4) auto_increment not null , name char(10) not null ,price int(4), sdate date),插入一条记录(name(计算机),price(5000),sdate(2006-8-8)),将给出的test.sql在mysql中运行,并查看结果。

create database exam;
grant all privileges on *.* to test@"%" identified by "123456";
use exam;
create table product(id int(4) auto_increment not null , name char(10) not null ,price int(4), sdate date);
insert into product(name,price,sdate) values("计算机",5000,"2006-8-8");