Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

  • Be the first to comment

  • Be the first to like this


  1. 1. What is Data Definition LanguageCommands of DDLWhat is Data manipulation LanguageCommands of DMLDifference between DDL & DML
  2. 2.  Data Definition Language (DDL) is a vocabulary used to define data structures in SQL Server or  It is a syntax similar to a computer programming language for defining data structures, especially database schemas.
  3. 3.  Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples: CREATE -CREATE TABLE <table name> ALTER -ALTER TABLE <table name> DROP -DROP TABLE <table name>; COMMENT - add comments to the data dictionary RENAME – RENAME TABLE <table name> DELETE:-DELETE FROM <table name>
  4. 4.  A data manipulation language (DML) is a vocabulary used to retrieve and work with data in SQL Server 2012. Use these statements to add, modify, query, or remove data from a SQL Server database. DML statements are used for managing data within tables A popular data manipulation language is that of Structured Query Language (SQL), which is used to retrieve and manipulate data in a relational database
  5. 5.  Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples: SELECT - retrieve data from the a database INSERT -INSERT INTO <table name> UPDATE -UPDATE <table name> DELETE -DELETE FROM <table name> MERGE - UPSERT operation (insert or update) CALL - call a PL/SQL or Java subprogram
  6. 6. Diference Between DDL & DML Data Definition Language  Data Manipulation (DDL) statements are used to define the database Language (DML) structure or schema statements are used for managing data These commands will within schema object primarily be used by database administrators  DML statements are during the setup and used for managing removal phases of a data within tables database project