请教关于select里的join和on是什么意思?

lwlmaomao 2005-03-31 05:32:36
请教关于select里的join和on是什么意思?

select e.*
from gln d join
pubobject b on d.gln=b.object_gln join
publication c on b.publication_id=c.publication_id join
iteminfo a on c.item_id=a.item_id join
tradeitem e on a.item_id=e.item_id
where d.f_id=5 and a.item_status='1' and e.valu like '%洗发水%'
...全文
430 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mschen 2005-03-31
  • 打赏
  • 举报
回复 1
join 是对表进行连接. on 是指定连接的条件.
wyb0026 2005-03-31
  • 打赏
  • 举报
回复
jion 连接下一个表 “on” 连接的条件
jinjazz 2005-03-31
  • 打赏
  • 举报
回复
连接两个表的时候用

34,594

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧