多表查询的问题

sonic18 2005-04-06 12:07:44
我有表download和表xh
享查询表download的字段software = 表xh的字段xh 的记录

在论坛上也找了些,都试了,就是不行

sql="select download.software,xh.xh from download as download,xh as xh where download.software=xh.xh"

出现错误:
Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft VBScript 运行时错误 错误 '800a01c2'

错误的参数个数或无效的参数属性值

大家帮帮忙啊
...全文
106 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
jzywh 2005-04-06
  • 打赏
  • 举报
回复
sql="select download.software,(select xh.xh from xh where xh.xh=download.software) from download"
  • 打赏
  • 举报
回复
select * from download inner join xh on download.software=xh.xh
mayi545 2005-04-06
  • 打赏
  • 举报
回复
试试这个行不行

sql="Select U.software C.xh From download As U inner join xh As C on U.software=C.xh "
sonic18 2005-04-06
  • 打赏
  • 举报
回复
谢谢大家,已经成功。
sonic18 2005-04-06
  • 打赏
  • 举报
回复
以上的都不行啊,为什么啊?我有的是access的数据库,(最讨厌access)
hsman 2005-04-06
  • 打赏
  • 举报
回复
up
hbhbhbhbhb1021 2005-04-06
  • 打赏
  • 举报
回复
sql="select download.software,xh.xh from download as download,xh as xh where download.software=xh.xh"
字段和表名不要一样,不能都用xh

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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