当前位置: 首页 > news >正文

陶瓷网站模板做网站经常用的字体有哪些

陶瓷网站模板,做网站经常用的字体有哪些,千锋python培训,广州建设工程交易中心主任1.删除除了学号字段以外#xff0c;其它字段都相同的冗余记录#xff0c;只保留一条#xff01;#xff08;也就是要删除王五和赵六中一条重复数据只留一条#xff09; 要求的预期效果: 原始数据创建表结构#xff1a; CREATE TABLE tb_student (id int(16) NOT NULL,na…1.删除除了学号字段以外其它字段都相同的冗余记录只保留一条也就是要删除王五和赵六中一条重复数据只留一条 要求的预期效果: 原始数据创建表结构 CREATE TABLE tb_student (id int(16) NOT NULL,name varchar(10) DEFAULT NULL,sex varchar(10) DEFAULT NULL,age char(2) DEFAULT NULL,PRIMARY KEY (id) ) 插入数据 insert into tb_student (id, name, sex, age) values(2,李四,男,21); insert into tb_student (id, name, sex, age) values(3,张三,女,17); insert into tb_student (id, name, sex, age) values(4,李四,男,12); insert into tb_student (id, name, sex, age) values(6,王五,女,20); insert into tb_student (id, name, sex, age) values(5,王五,女,20); insert into tb_student (id, name, sex, age) values(7,赵六,男,18); insert into tb_student (id, name, sex, age) values(1,赵六,男,18); insert into tb_student (id, name, sex, age) values(8,张三,男,17); sql如下 DELETE FROM tb_student WHERE id NOT IN ( SELECT id FROM (( SELECT min(id) id FROM tb_student GROUP BY name, sex,age )) t) 2.查询各科成绩都及格的学员要求查询出参加考试的各科成绩都高于60分不管参加了多少科考试 要求结果 CREATE TABLE tb_score (id int(10) NOT NULL,username varchar(20) DEFAULT NULL,course varchar(20) DEFAULT NULL,score int(10) DEFAULT NULL,PRIMARY KEY (id) ) insert into tb_score (id, username, course, score) values(1,张三,语文,50); insert into tb_score (id, username, course, score) values(2,张三,数学,80); insert into tb_score (id, username, course, score) values(3,张三,英语,90); insert into tb_score (id, username, course, score) values(4,李四,语文,70); insert into tb_score (id, username, course, score) values(5,李四,数学,80); insert into tb_score (id, username, course, score) values(6,李四,英语,80); insert into tb_score (id, username, course, score) values(7,王五,语文,50); insert into tb_score (id, username, course, score) values(8,王五,英语,70); insert into tb_score (id, username, course, score) values(9,赵六,数学,90); sql如下 select username,score from tb_score where id not in (select id from tb_score where score 60) 3.mysql完成行转列操作 原始数据如下 行转列后的数据 完成上面的后就可以看到只需要将结果以名称分组并按列sum求和或用max取最大值就可以获取到满足的结构了因为不对应学科的记录其分数必然是0完善结果如下 : 总结if主要是用来创建新列并将非对应学科的分数写为0用sum或max配合group by保证取出的值是学科对应的值这样就可以完成行转列了。
http://www.pierceye.com/news/900938/

相关文章:

  • 给客户做网站kesioncms企业网站蓝色模板
  • 哪个网站可以做视频播放器建筑工程网络计划方法
  • 长沙做网站的有哪些wordpress投稿页面路径怎么写
  • 京东第一次做网站如何做像淘宝一样的网站
  • 南湖网站建设公司怎么用iapp做网站软件
  • 永康网站建设专业公司六安网约车收入怎么样
  • 长沙品质企业建站服务电话随州公司做网站
  • 怎么做期货网站永久免费linux服务器
  • 怎么访问被禁止的网站微信商城网站方案
  • 建设网站需要会什么简单网页代码html
  • 南通网站怎么推广淘客选品网站开发
  • 网站开发的风险与风险管理网站名字
  • 朝阳网站视频拍摄脚本
  • 嘉兴建站模板源码郑州网站开发的公司电话
  • 新乡网站开发的公司电话百度热搜风云榜
  • 福永网站的建设福州
  • 抚州市临川区建设局网站eaccelerator wordpress
  • 如何让网站自适应屏幕门户网站主要特点和功能
  • 网站维护费用怎么收网站下载的软件怎么安装
  • 做电子相册的网站省住房和城乡建设厅官方网站
  • 什么是自助网站网页设计与制作课件和素材
  • 如何为网站建设内容wordpress去水印插件
  • 办公家具网站模版制作手机软件网站
  • 诚信网站认证必需做吗网站建设mfdos
  • 廊坊网站建设哪家权威网址导航大全排名
  • 北京建站公司哪个好05网电子书
  • 权威网站设计wordpress通知站点360搜索
  • 做靓号网站凡客小程序
  • 创建网站开发公司公司做个网站
  • 做网站的工具+论坛html怎么自己做网站