SQL虚拟列
我收到“SQL 错误:ORA-01733:此处不允许虚拟列”
这是我的代码:
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
有什么想法吗?我被困住了,使用 Oracle 所以我发现我无法执行 Update/From 语法...所以我正式圈了马车
I am getting the 'SQL Error: ORA-01733: virtual column not allowed here'
Here is my code:
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
Any Ideas? I am stuck, using Oracle so I've discovered I cannot do the Update/From syntax...so I've officially circled the wagons
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
例如,尝试等效查询
Try an equivalent query for example