The difference between call and exec in Oracle

Source: Internet
Author: User
Tags sqlplus

Today found a small thing, feel very interesting, find some information, share with you:

In the Sqlplus:

Tools provided by third parties (e.g., Plsqldev)

Summarize:

exec is a sqlplus command and can only be used in Sqlplus.

Call is a SQL command, any tool can be used, call must have parentheses, i.e. no parameters

Call must have parentheses, i.e. no parameters idle>Connect/ asSYSDBA is connected. SYS@PO10>SYS@PO10> Create procedureP_test is     2  begin    3    NULL; 4  End; 5  /The process has been created. SYS@PO10>SYS@PO10> execp_test PL/The SQL process has completed successfully. SYS@PO10>Call p_test2  ; Call P_test*Section1line error: ORA-06576: Not a valid function or procedure name SYS@PO10>Call p_test ();  The call is complete. SYS@PO10>  execCan only be used in sqlplus; call may be used anywhere

Hope to be useful to those who need ...

The difference between call and exec in Oracle

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.