|

Q: How do I modify a column name?
A: You can modify a column name through DBATool. Follow the steps described below:
-
Launch DBATool.
-
Choose "Object management" from the menu bar and then the "Table" item. The "Table" dialog window appears.
-
Select the database you want to modify from the "Database" combobox.
-
Select the table you want to modify from the "Table" combobox.
-
Press "+" beside "Column". The "Add/Modify" dialog window appears.
-
Modify the column name.
Alternatively, you can use dmSQL to modify a column name. Use the following syntax:
dmSQL> ALTER TABLE table_name MODIFY column_name NAME TO NEW_NAME;
Example: modify salary column to age.
dmSQL> alter table t1 modify salary name to age;
|