Data Definition Language(DDL) is utilized to characterize information in database server. DDL statements explains, how the pattern of data should be there in the database schema table and includes the following commands.
Create
Alter
Drop
Truncate
Create table articulation is utilized to make a table in the database server. And each table in the database should contain unique name and these tables are organised into rows and columns, where appropriate data or values should be inserted. And the column parameters specifies the name of the columns of the table and the datatypes parameters specifies the type of data that the column is holding that may vary from varchar, decimal, date and integers.
SQL Alter Table statement is used to add, modify, or delete a columns from the existing table. Alter Table command performs adding of column or modifying column size and is divided into two types.
Drop Table command can be performed on existing database. Indexes, tables, and databases can easily be erased/evacuated with the DROP statement. The following are the actions performed by drop command.
- Dropping a section from the table.
- Dropping a table from the database.
SQL is a non-procedural dialect. Client can compose SQL script to execute and SQL compiler consequently produces a method to get to database and convey the fancied output. SQL is a database coding, planned for the recuperation and organisation of data in social database. SQL Truncate command is utilized to erase all rows from the current table in the database."SQL Truncate Table" command shows how to truncate the rows in a table.