gpt4 book ai didi

sql - 在多行中中断 PL/SQL 过程调用的正确语法是什么?

转载 作者:行者123 更新时间:2023-12-04 16:23:49 25 4
gpt4 key购买 nike

我正在调用这样的 PL/SQL 过程:

execute util.verify(src_schema => '&username',
stab => '&tab_name');

我收到这些错误:
SQL> execute util.verify(src_schema => '&username',
BEGIN util.verify(src_schema => 'u1',; END;

*
ERROR at line 1:
ORA-06550: line 1, column 57:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue avg count current exists max min prior sql stddev
sum variance execute forall merge time timestamp interval
date <a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set specification>
<an alternatively


SQL> stab => '&tab_name',
SP2-0734: unknown command beginning "stab ..." - rest of line ignored.

看起来我不能只是在 , 之间中断通话.如何在多行中编写此调用?

最佳答案

在 SQLPlus 中,您在下一行继续的行尾放置一个破折号。

execute util.verify(src_schema => '&username', -
stab => '&tab_name');

更新 : 添加了文档链接

EXECUTE, SQL*Plus® User's Guide and Reference

关于sql - 在多行中中断 PL/SQL 过程调用的正确语法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4529665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com