answersLogoWhite

0

Explain the DDL and DML commands in sql with example?

Updated: 11/10/2022
User Avatar

Venkatvatsan

Lvl 1
11y ago

Best Answer

DDL--Data Definition Language

and Commands for DDL as:

1.CREATE DATABASE--create a new data base

2.ALTER DATABASE---modifies a database

3.CREATE TABLE---create a new table

4.ALTER TABLE---modifies a table

5.DROP TABLE---deletes a table

6.CREATE INDEX---creates an index(search key)

7.DROP INDEX---deletes an index

DML---Data Manipulation Language

Commands from the DML part of SQL:

1.SELECT----extracts data from a database

2.UPDATE--updates data in a database

3.DELETE---deletes data from a database

4.INSERT INTO---insert new data into a database

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain the DDL and DML commands in sql with example?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the difference between ddl and dml commands?

The basic difference between DDL and DML is the commands they provide . The dml (data manipulation language) provides statements to enter, update, delete and perform complex queries on these tables while the ddl(data description language) provides statement for the creation and deletion of tables, indexes, views etc.


What difference between dml and ddl?

The basic difference between DDL and DML is the commands they provide . The DDL provides statement for the creation and deletion of tables, indexes, views etc. while the DML provides statements to enter, update, delete and perform complex queries on these tables.


Difference between DDl DMl statement explain how savepoint work?

The differences between them you can get from, http://arjudba.blogspot.com/2008/04/what-are-difference-between-ddl-dml-and.html


What are the sql commands with dml and ddl?

The DDL provides statement for the creation and deletion of tables, indexes, views etc. The DML provides statements to enter, update, delete and perform complex queries on these tables.


Which is fastest command dcl dml tcl ddl?

DML


What is the full form of ddl and dml?

ddl: data definition languagedml: data manipulation language


Full meaning of the acronyms dml and ddl state difference within the two?

Details is discussed on http://arjudba.blogspot.com/2008/04/what-are-difference-between-ddl-dml-and.html


Difference between ddl and dml?

DML(data manipulation language) provides statements to enter, update, delete and perform complex queries on these tables. DDL(Data definition language) provides statements for creation and deletion of tables, view, indexes etc.


What is the Componentes of dbms?

Data Definition Lenguage (DDL) Data Manipulation Lenguage (DML) Data Dictionary


What are the two major components of SQL and what function do they serve?

The Data Definition Language (DDL). This component of the SQL language is used to create and modify tables and other objects in the database. For tables there are three main commands:CREATE TABLE tablename to create a table in the databaseDROP TABLE tablename to remove a table from the databaseALTER TABLE tablename to add or remove columns from a table in the database.The Data Manipulation Language (DML) component of the SQL language is used to manipulate data within a table. There are four main commands:then,SELECT to select rows of data from a tableINSERT to insert rows of data into a tableUPDATE to change rows of data in a tableDELETE to remove rows of data from a table


What are the commands of DML?

Retrieving Data,Inserting Data,and Deleting Data.


What are the elements of SQL?

Data manipulation language(DML) data Defenition language(DDL) data control Language(DCL) Transaction Control