Oracle returning into

Source: Internet
Author: User

The returning into statement is used to return the value returned after the statement is executed, returning the result before or after the execution, as described below:

The returning into statement of the DELETE statement returns the result before the delete;
The returning into statement of the INSERT statement returns the result after the insert.
The returning into statement of the UPDATE statement returns the result after the update.
Returning into statement and return generic
The INSERT INTO VALUES statement supports the returning statement, and the INSERT INTO SELECT statement is not supported.
The merge statement does not support returning statements.

Example: The following statements are in storage, V_age is a variable declared

<span style= "FONT-SIZE:18PX;" >insert into t_test values (1, ' Zhangsan ', ' "V_age;update ') returning age to t_test returning set age = ' + ', age int o V_age;delete t_test returning age into v_age;</span>


Oracle returning into

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.