求助

slysmart 2010-08-03 01:29:43

sqlcmd="select a.name_no,a.name_re from sofutr as a, wgms as b where a.BUKAMEI_J='"&str&"' and a.name_no=b.name_no and a.name_rev=b.name_rev and b.ur_fg='0'"

上述代码在我测试的access中正常
但在正式数据库(oracle)则报错
不是为什么?
错误信息如下:
Microsoft OLE DB Provider for Oracle 错误 '80040e14'
ORA-00933: SQL 命令未正确结束
...全文
55 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dogfish 2010-08-03
  • 打赏
  • 举报
回复
不知道是不是那个as的问题。很少这样使用。所以不确定。
slysmart 2010-08-03
  • 打赏
  • 举报
回复
谢谢楼上的,就是这个问题导致。
孟子E章 2010-08-03
  • 打赏
  • 举报
回复
不同的数据库语法不同导致的吧
试试
sqlcmd="select a.name_no,a.name_re from sofutr a, wgms b where a.BUKAMEI_J='" & str & "' and a.name_no=b.name_no and a.name_rev=b.name_rev and b.ur_fg='0'"

28,409

社区成员

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

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