What are DDL and DML in Oracle?

Source: Internet
Author: User
When a DDL statement is executed, oracle submits the current transaction before and after each statement. If you use the insert command to insert records into the database, a DDL statement is executed.

When a DDL statement is executed, oracle submits the current transaction before and after each statement. If you use the insert command to insert records into the database, a DDL statement is executed.

[DDL]

Create table

Alter table

Drop table delete table

Truncate table delete all rows in the table

Create index

Drop index Delete index

When a DDL statement is executed, Oracle submits the current transaction before and after each statement.

If you use the insert command to insert records into the database and execute a DDL Statement (such as create table), data from the insert command will be submitted to the database.

After a DDL statement is executed, it is automatically submitted and cannot be rolled back.

[DML]

Insert inserts records into the database

Update and modify Database records

Delete database records

If the DML command is not submitted, it will not be seen by other sessions.

Unless the DDL or DCL command is executed after the DML command, or the user exits the session or terminates the instance,

In this case, the system will automatically issue the commit command to submit unsubmitted DML commands.

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.