Oracle Apex-在执行即时查询中包含用户
我对立即执行的查询有以下查询:
begin
execute immediate q'['delete from MY_TABLE where USER_EMAIL =
lower(v('APP_USER'))]';
end;
但是我遇到了此错误: ORA_SQLCODE:00900无效的SQL语句
有人知道如何将用户包含在其中?
谢谢
I have the following query for an execute immediate:
begin
execute immediate q'['delete from MY_TABLE where USER_EMAIL =
lower(v('APP_USER'))]';
end;
But I'm getting this error:
ora_sqlcode: 00900 Invalid SQL Statement
Anybody knows how can I include the user in there?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这完全是无效的声明,不是应用程序用户错误。
尝试
或
另一方面,为什么要使用动态SQL?这里没有动态,所以普通
会这样做。
That's completely invalid statement, it isn't application user that makes it wrong.
Try
or
On the other hand, why do you want to use dynamic SQL? There's nothing dynamic here, so ordinary
would do.