首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >SQL虚拟列

SQL虚拟列
EN

Stack Overflow用户
提问于 2010-07-09 12:20:54
回答 1查看 629关注 0票数 2

我收到“SQL错误: ORA-01733:此处不允许使用虚拟列”

下面是我的代码:

代码语言:javascript
运行
复制
update (
   Select g.FIRST300BB from ( 
      select FIRST300BB, row_number() over (order by pitchandeventid) r
      from gamedata_me 
      where hitterid = 5000
      and (eventcode = 'BB')
   ) g
   where r between 0 and 300
) t
set t.FIRST300BB =1

有什么想法吗?我被卡住了,使用甲骨文,所以我发现我不能做更新/从syntax...so我已经正式圈出了马车

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-07-09 12:46:37

尝试一个等价的查询,例如

代码语言:javascript
运行
复制
update gamedata_me 
  set first300BB=1
where rowid in(
          Select g.rid from ( 
              select rowid rid, row_number() over (order by pitchandeventid) r
                  from gamedata_me 
                 where hitterid = 5000
                 and (eventcode = 'BB')
               ) g
   where r between 0 and 300
    ) 
票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3209804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档