当前位置:首页 » 编程语言 » sql表并列

sql表并列

发布时间: 2023-03-05 00:20:14

sql语句将两个查询结果并列输出

如果是2个SQL语句的话。如果列名都一样,使用UNIONALL就可以了。例如select*from表1UNIONALLselect*from表2就可以了。

② SQL 搜索数据相加 并列显示

select sum(分数) from 表 where 日期=day
select sum(分数) from 表 where 日期=month
select sum(分数) from 表 where 日期=year

③ sql查询(并列)

select uname,uscore,uobject
from Stu_subject
where uscore in
(select distinct top 3 uscore from Stu_subject where uscore > 72 order by uscore desc)
order by uscore desc
你这个语句要报错的吧!~ORACLE是要报错的~MSSQL不会报错?没试过~

热点内容
java返回this 发布:2025-10-20 08:28:16 浏览:595
制作脚本网站 发布:2025-10-20 08:17:34 浏览:889
python中的init方法 发布:2025-10-20 08:17:33 浏览:583
图案密码什么意思 发布:2025-10-20 08:16:56 浏览:766
怎么清理微信视频缓存 发布:2025-10-20 08:12:37 浏览:687
c语言编译器怎么看执行过程 发布:2025-10-20 08:00:32 浏览:1015
邮箱如何填写发信服务器 发布:2025-10-20 07:45:27 浏览:258
shell脚本入门案例 发布:2025-10-20 07:44:45 浏览:117
怎么上传照片浏览上传 发布:2025-10-20 07:44:03 浏览:808
python股票数据获取 发布:2025-10-20 07:39:44 浏览:715