嵌套查询成绩表 --成绩号 学号 科目
select 成绩 from 成绩表 where 科目='计算机';
select sum(cj) from 成绩表 where 成绩=(select 成绩 from 成绩表 where 科目='计算机’);
create table teacher(id int primary key auto increment,name varchar(20) not null,gender varchar(5) not null,age int;);
mysql server端navicat运行选中 ctrl+shift+r
关闭防火墙不重启 setenforce 0重启(永久) /etc/selinux/configenforcing改成disabled
ifconfig | less 管道中线 左传右指令