Manika wants to rename a table in her database using SQL commands. Which category of commands should she use? i. DDL ii. DCL iii. DML iv. TCL
Answers
Answered by
9
She should use the (i) DDL category of commands.
The command for renaming a table is:
Alter table <table_name> rename to <new_table_name>;
DDL [data definition language] commands are those commands that are involved in making changes to the structure of the table. They include commands such as Alter, Drop, Create, Truncate, etc.
- Alter - used for making changes to the definition of the table
- Drop - used to delete a table/database
- Create - used to create a table
- Truncate - used to delete data from a table
Similar questions
Math,
1 month ago
Math,
1 month ago
Social Sciences,
3 months ago
Social Sciences,
3 months ago
Chemistry,
10 months ago
Biology,
10 months ago