Application of oracle pl/SQL programming SQL statements

Source: Internet
Author: User

Oracle pl/SQL programming the use of SQL statements select must have a return record, do not report an error saying that no data is found and must have an into select statement to return one and only one record cannot be written as where deptno = 10 because multiple records will be returned. Of course, the record mentioned here is not an absolute record, but a reference to the following usage for the variable to be assigned. The insert statement applies update in pl/SQL. it is also basically consistent that the variable SQL % rowcount is often used as a keyword to count the number of changed records. When the select statement is used, the rowcount value is the final number of records instead of the actual number. so generally, rowcount is only used to count the update, insert, and delete statements.
 

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.