use xuexiao;
create table students (
id int(10),
name
varchar(20),
sex varchar(4),
age int(10),
class varchar(20),
addr varchar(50)
);
show tables;
insert into students(id , name
,sex ,age , class , addr ) values (1 , "熊大",'男' ,19,'狗熊岭' , '大树洞');
insert into students(id , name
,sex ,age , class , addr ) values (2 , "熊二",'男' ,18,'狗熊岭' , '大树洞');
insert into students(id , name
,sex ,age , class , addr ) values (3 , "光头强",'男' ,20,'狗熊岭' , '木屋');
select * from students;
create table Score (
id int(10),
Stu_id int(10),
C_id int(10),
Grade int(10)
);
show tables;
insert Score(id , Stu_id , C_id , Grade ) values (1 , 24, 5 ,39);
insert Score(id , Stu_id , C_id , Grade ) values (2 , 12, 3 ,44);
insert Score(id , Stu_id , C_id , Grade ) values (3 , 33, 4 ,67);
select * from Score;
create table cource (
id int(10),
C_name
varchar(20)
);
show tables;
insert cource(id , C_name
) values (1 , "数据库管理与应用");
insert cource(id , C_name
) values (2 , "毛概");
insert cource(id , C_name
) values (3 , "高数");
select * from cource;