码迷,mamicode.com
首页 > 其他好文 > 详细

表间查询

时间:2014-11-14 19:29:57      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:io   ar   os   sp   on   bs   as   nbsp   c   

  select positionChild,(select Remark from Freqs a join Contents b on a.ID=b.senior where b.ID=c.id) as senior,
  (select Remark from Freqs a join Contents b on a.ID=b.middle where b.ID=c.id ) as middle,
  (select Remark from Freqs a join Contents b on a.ID=b.general where b.ID=c.id ) as general
    from Contents c

表间查询

标签:io   ar   os   sp   on   bs   as   nbsp   c   

原文地址:http://www.cnblogs.com/xihong2014/p/4097803.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!