ORA-00972 identitify is too long

wuwangni06 2009-03-17 05:59:27
for v_ser in '(select a.nbr1,
a.nbr2,
a.dura,
a.date
from'||TABLENAME1||'a'||
'order by a.nbr1,
a.nbr2,
a.dura,
a.date)' ;
open v_ser for v_sql; --15行

这块代码15行报ORA-00972 identitify is too long
我定义的v_sql varchar2(4000); 大家帮看看什么问题啊
...全文
390 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
codearts 2009-03-17
  • 打赏
  • 举报
回复
for v_ser in '(select a.nbr1,
a.nbr2,
a.dura,
a.date
from'||TABLENAME1||'a'||
'order by a.nbr1,
a.nbr2,
a.dura,
a.date)' ;

就这句错了, for 后面的in怎么会有引号呢?
mosaic 2009-03-17
  • 打赏
  • 举报
回复
估计TABLENAME代表的表明过长。
declare64 2009-03-17
  • 打赏
  • 举报
回复
把完整的语句贴出来了,这样好看错误
jdsnhan 2009-03-17
  • 打赏
  • 举报
回复
Error: ORA-00972: identifier is too long
Cause: You tried to reference a table, cluster, view, index, synonym, tablespace, or username with a value that was longer than 30 characters.
Action: The options to resolve this Oracle error are:
Names for tables, clusters, views, indexes, synonyms, tablespaces, and usernames must be 30 characters or less. You must shorten the name to no more than 30 characters for these objects.

与 v_sql varchar2(4000) 是无关的。

17,086

社区成员

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

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