ORA-00933:SQL命令未正确结束 ?

xredleaf 2008-09-18 04:45:21
update fk_resource 
set grade_path=(select a.grade_path from fk_resource a where a.id=fk_resource.father_id) || '/' || cast(id as varchar2(10))
where father_id<>-1


这条sql语句报ORA-00933:SQL命令未正确结束
看不出来哪里错了,谁能帮个忙解决一下,非常感谢!
...全文
361 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
sleepzzzzz 2008-09-18
  • 打赏
  • 举报
回复
没看出问题啊,不过可以这样表达:
update fk_resource 
set grade_path=(select a.grade_path || '/' || cast(a.id as varchar2(10)) from fk_resource a where a.id=fk_resource.father_id)
where father_id<>-1

hyrongg 2008-09-18
  • 打赏
  • 举报
回复

update fk_resource
set grade_path=(
select a.grade_path||'/'|| cast(id as varchar2(10)) from fk_resource a where a.id=fk_resource.father_id
) where father_id<>-1;
xredleaf 2008-09-18
  • 打赏
  • 举报
回复
哪里少了?
sleepzzzzz 2008-09-18
  • 打赏
  • 举报
回复
少了右括号吧

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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