Oracle about the use of dynamic EXECUTE statement execute immediate

Source: Internet
Author: User

SQL statement stitching can be performed using execute immediate when the database handles complex business logic in a developed application scenario

Insert into Tb_temp_public (v1, v2, V3, V4, v5,v6,v7,v8,v9) Select ",", ",", ",", ",", "from dual;

The field inside the Tb_temp_public is dynamically generated after the corresponding value is also dynamically generated when this time execution statement can be used:

Vsql varchar2 (100);

Vsql: = ' insert into Tb_temp_public (v1, v2, V3, V4, v5,v6,v7,v8,v9) Select ', ' ', ' ', ' ', ' ', ' ', ', ', ' from dual ';

To perform this can be done with execute immediate (VSQL);

Oracle about the use of dynamic EXECUTE statement execute immediate

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.