Computer Science, asked by ravimunivenkttappa, 6 months ago

how do u modify the colum name and width for existing table​

Answers

Answered by lamiyali110
0

Answer:

Syntax(Oracle,MySQL,MariaDB): ALTER TABLE table_name RENAME TO new_table_name;

Columns can be also be given new name with the use of ALTER TABLE. Syntax(Oracle): ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

Syntax(MySQL,MariaDB): ALTER TABLE table_name CHANGE COLUMN old_name TO new_name;

Answered by Anonymous
1

Alter- syntax

"ALTER TABLE `table_name`" is the command that tells MySQL server to modify the table named `table_name`.

"ADD COLUMN `column_name` `data_type`" is the command that tells MySQL server to add a new column named `column_name` with data type `data_type

Similar questions