一个ORACLE 缺失表达式 的问题

chengxu92 2009-10-30 04:18:17
就是下面这个句子。。我在SQL DEVELOPER中执行是没有问题的。。
但是在.NET下面就会报 缺失表达式。。
请各位帮我解答下疑问。。
select au.zz name,count(au.qcode) ccount from ISTIC_DATA_CSTPCD_AUTHOR au inner join (select distinct(arti.AID) disaid,arti.qcode qcode from ISTIC_DATA_CSTPCD_FUND fund inner join ISTIC_DATA_CSTPCD_ARTICLE arti on fund.qcode=arti.qcode where 1=1 and fund.JJXM like '%安徽%' ) te on te.qcode=au.qcode group by au.zz order by ccount desc
...全文
501 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
chengxu92 2009-10-30
  • 打赏
  • 举报
回复
原来真的是参数的问题。。
谢谢大家。。散分。。结帖。。
Adebayor 2009-10-30
  • 打赏
  • 举报
回复
肯定是少了点什么,你在.net下调试,将该语句再在oracle里面执行 看有问题没?
chengxu92 2009-10-30
  • 打赏
  • 举报
回复
嗯。。好的。。我看一下
huangdh12 2009-10-30
  • 打赏
  • 举报
回复
在.net 中你应该是带参数查询的吧? 看看你的参数传递有没有问题
chengxu92 2009-10-30
  • 打赏
  • 举报
回复
select au.zz name,count(au.qcode) ccount from ISTIC_DATA_CSTPCD_AUTHOR au inner join (select distinct(arti.AID) disaid,arti.qcode qcode from ISTIC_DATA_CSTPCD_FUND fund inner join ISTIC_DATA_CSTPCD_ARTICLE arti on fund.qcode=arti.qcode where 1=1 and fund.JJXM like '%安徽%' ) te on te.qcode=au.qcode group by au.zz order by ccount desc;

这样么?还是一样的效果
Adebayor 2009-10-30
  • 打赏
  • 举报
回复
[Quote=引用楼主 chengxu92 的回复:]
就是下面这个句子。。我在SQL DEVELOPER中执行是没有问题的。。
但是在.NET下面就会报  缺失表达式。。
请各位帮我解答下疑问。。
select au.zz  name,count(au.qcode) ccount from ISTIC_DATA_CSTPCD_AUTHOR au inner join (select distinct(arti.AID) disaid,arti.qcode qcode from ISTIC_DATA_CSTPCD_FUND fund inner join ISTIC_DATA_CSTPCD_ARTICLE arti on fund.qcode=arti.qcode where  1=1 and fund.JJXM like '%安徽%' ) te on te.qcode=au.qcode group by au.zz order by ccount desc
[/Quote]
后面加个分号试试
yinfubaobei 2009-10-30
  • 打赏
  • 举报
回复
学习了...
rexyudl 2009-10-30
  • 打赏
  • 举报
回复
看看字段或者别名等,有没有是.NET关键字

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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