一条SQL语句的探讨

于之 2003-10-21 09:38:41
select sconh.mattno,sconh.acctno,sconh.idate,scond.uprice,scond.qtycal,scond.artno,article.ctb3,scond.ctb0 from sconh,scond,article where sconh.mattno=scond.mattno and scond.artno=article.artno order by sconh.mattno

请问这样的查询合理吗?有否更好的办法呢?
...全文
29 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
于之 2003-10-21
  • 打赏
  • 举报
回复
我怎以按了CTRL+L后,一些图示出来了,但我好象看不大懂!如何从中得到弦机呢?
pengdali 2003-10-21
  • 打赏
  • 举报
回复
楼上写的和楼主的一样,你可以到查询分析器里写入代码后按ctrl+L 看执行计划。
txlicenhe 2003-10-21
  • 打赏
  • 举报
回复
select sconh.mattno,sconh.acctno,sconh.idate,scond.uprice,scond.qtycal,scond.artno,article.ctb3,scond.ctb0 from sconh,scond,article where sconh.mattno=scond.mattno and scond.artno=article.artno order by sconh.mattno
-->
Select a.mattno,a.acctno,a.idate,b.uprice,b.qtycal,b.artno,c.ctb3,b.ctb0
from sconh a
join scond b on a.mattno = b.mattno
join article c on b.artno = c.artno
order by a.mattno

22,206

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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