对不同条件查询到的结果在同一行中展示

尝试写过使用","和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

最新文章

  1. ASP.NET Core 中文文档 第四章 MVC(4.1)Controllers, Actions 和 Action Results
  2. Unmanaged Exports使用方法
  3. BAT 技术团队博客
  4. 不用插件 让Firefox 支持网页翻译
  5. Python学习路程day9
  6. 关于ORA-04021解决办法(timeout occurred while waiting to lock object)
  7. 【Todo】Python的工作原理
  8. 在CDHtmlDialog中处理WindowClosing
  9. GridView动态增加行
  10. Spark任务流程笔记
  11. 【Unity插件】LitJson杂谈
  12. Confluence 6 数据收集隐私策略
  13. ubuntu下的Nessus插件更新
  14. Git问题Everything up-to-date解决
  15. asp.net webform 不显示__doPostBack的原因及某种解决方法
  16. 解决 java.lang.ClassNotFoundException: javax.servlet.ServletContext报错
  17. Kafka:ZK+Kafka+Spark Streaming集群环境搭建(二十一)NIFI1.7.1安装
  18. exec函数簇
  19. Python环境右键定制
  20. 20145215《Java程序设计》第二周学习总结

热门文章

  1. jQuery添加/删除Select的Option项
  2. VC++2017关于项目出现"const char *" 类型的实参与 "char *" 类型的形参不兼容错误的解决方法
  3. IDirect3DSurface9的D3DFORMAT格式
  4. 24-Perl 数据库连接
  5. O056、Extend Volume 操作
  6. java.sql.SQLException: Could not retrieve transaction read-only status from server 问题解决
  7. day06 Python class基础篇
  8. vue下载后台传过来的乱码流的解决办法
  9. SmartBinding与kbmMW#2
  10. kbmMW 5.09测试报告(1)-Scheduler