Oracle stored procedure uses DML statement issues

Source: Internet
Author: User

A few days ago with Oracle write stored procedures, found in stored procedures to write update, insert or DELETE statements will compile errors,

Then inadvertently found a solution,

Add EMP to represent the Scott user, if you create a stored procedure with a Scott user, the table name =emp, so that the stored procedure created can write arbitrary DML statements

However, with the rest of the user logged in, if you log in as normal, although the table name can be written as scott.emp, but the DML statement in the stored procedure is not so recognized, will prompt the table or view does not exist

You can use this notation by logging in SYSDBA.

If you are careful you will find that in different ways to log in, the default table space will not be the same, I use the system test, you can try

Oracle stored procedure uses DML statement issues

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.