sql 同一行中,不同结果在不同列显示
2024-08-30 16:58:54
对不同条件查询到的结果在同一行中展示
尝试写过使用","和inner join两种方式,感觉使用","的更加直观
select table1.guid, table1.content name, table2.content sex,
table3.content age from
(
select guid, content
from table
where type='姓名'
) table1
,(
select guid, content
from table
where type='性别'
) table2
,(
select guid, content
from table
where type='年龄'
) table3
where table1.guid = table2.guid
and table2.guid = table3.guid
最新文章
- ASP.NET Core 中文文档 第四章 MVC(4.1)Controllers, Actions 和 Action Results
- Unmanaged Exports使用方法
- BAT 技术团队博客
- 不用插件 让Firefox 支持网页翻译
- Python学习路程day9
- 关于ORA-04021解决办法(timeout occurred while waiting to lock object)
- 【Todo】Python的工作原理
- 在CDHtmlDialog中处理WindowClosing
- GridView动态增加行
- Spark任务流程笔记
- 【Unity插件】LitJson杂谈
- Confluence 6 数据收集隐私策略
- ubuntu下的Nessus插件更新
- Git问题Everything up-to-date解决
- asp.net webform 不显示__doPostBack的原因及某种解决方法
- 解决 java.lang.ClassNotFoundException: javax.servlet.ServletContext报错
- Kafka:ZK+Kafka+Spark Streaming集群环境搭建(二十一)NIFI1.7.1安装
- exec函数簇
- Python环境右键定制
- 20145215《Java程序设计》第二周学习总结
热门文章
- jQuery添加/删除Select的Option项
- VC++2017关于项目出现";const char *"; 类型的实参与 ";char *"; 类型的形参不兼容错误的解决方法
- IDirect3DSurface9的D3DFORMAT格式
- 24-Perl 数据库连接
- O056、Extend Volume 操作
- java.sql.SQLException: Could not retrieve transaction read-only status from server 问题解决
- day06 Python class基础篇
- vue下载后台传过来的乱码流的解决办法
- SmartBinding与kbmMW#2
- kbmMW 5.09测试报告(1)-Scheduler