Results 1 to 6 of 6

Thread: Difference between DML statements and DDL statements

  1. #1
    Join Date
    Dec 2009
    Posts
    48

    Difference between DML statements and DDL statements

    Hi Friends,

    I need your help to solve my confusion about the DML ans DDL statements of the SQL. I don't know what is the exact difference between DML ans DDL statements. The commands like select, insert, update comes in which category , i.e in DML statements or DDL statements? please let me know some differences between the DML statements and DDL statements. I would greatly appreciate your any help over this.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Difference between DML statements and DDL statements

    • DDL statements (Data Definition Language) are basically used to define the structure of the database or schema of the database. DDL staements are used to develop a structure to the table.
    • DML statements (Data Manipulation Language) are basically used to manage the data of the schema object. DML statements are used to used to perform the updations to the data

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Difference between DML statements and DDL statements

    DDL statement defines the database structure. Following are some DDL commands which are available in the SQL:
    1. ALTER :It is used to alters the database structure.
    2. COMMENT : It is used to add comments in the data dictionary.
    3. DROP : It is used to delete database objects.
    4. CREATE : It is used to create database objects.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Difference between DML statements and DDL statements

    Hi,

    DDL is the abbreviation of the Data Definition Language. These statements are used to define the schema as well as the database structure. DML is the abbreviation of the Data Manipulation Language. These statements are used for the management of the schema objects. The examples of the DDL statements are :ALTER, CREATE, DROP , RENAME, TRUNCATE , COMMENT etc. While the examples of DML statements are DELETE, SELECT, UPDATE , INSERT etc..

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Difference between DML statements and DDL statements

    If you want to be aware about the DML statements then please refer following it's examples:
    • update statements: Used to updates existing data .
    • delete statements: Used to deletes records from a table
    • lock table statements: Used for control concurrency
    • select statements: retrieve data from the a database
    • insert statements: Used to insert data into a table

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: Difference between DML statements and DDL statements

    Hello friend,

    The DML statements are entirely different as compare to the DDL statements. DML statement is used for schema while the DDL statement is used for schema structure. 'update', 'delete', 'insert' are some example of the Data Manipulation Language statements while 'drop', 'create', 'alter' are the examples of Data Definition Language statements. Basically the Data Manipulation Language statements are used to access the data from the data structure which is created by the Data Definition Language statements

Similar Threads

  1. Different statements in SQL query
    By Kuna! in forum Software Development
    Replies: 10
    Last Post: 12-03-2011, 04:02 PM
  2. How to Inject SQL Statements in PHP?
    By DANIEL 602 in forum Software Development
    Replies: 5
    Last Post: 05-03-2010, 03:46 AM
  3. Problem with my IF ELSE IF statements in C++
    By KACY5 in forum Software Development
    Replies: 2
    Last Post: 04-09-2009, 05:12 PM
  4. SQL statements with JSP
    By blindsleeper in forum Software Development
    Replies: 2
    Last Post: 16-05-2009, 09:54 PM
  5. A very difficult SQL statements into a master
    By Xanti in forum Software Development
    Replies: 2
    Last Post: 27-03-2009, 07:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,188,904.18722 seconds with 17 queries