Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone explain the DDL commands in SQL?

1 Answer

0 votes
by (119k points)
edited by

DDL stands for Data Definition Language is a type of SQL commands that deals with database schemas and descriptions of how the data have to reside in the database.

  • CREATE - to create a database, table, index, views, store procedure, function, or triggers
  • ALTER – to change or modify the structure of the existing database
  • DROP – to delete not only the data stored in the table but also the table from the database
  • TRUNCATE – to delete all records from a table, even the spaces allocated for the records but not the table itself.
  • RENAME – to rename the objects of the database like table, columns, etc.

To learn DDL commands in SQL, you can register for this SQL online course by Intellipaat.

Related questions

0 votes
1 answer
asked May 4, 2023 in SQL by neelimakv (32.5k points)
0 votes
1 answer
asked Apr 2, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
2 answers
asked Mar 23, 2021 in SQL by dev_sk2311 (45k points)
0 votes
4 answers
asked Mar 23, 2021 in SQL by dev_sk2311 (45k points)

Browse Categories

...