How can we change the name of a column of a table?

Answer Posted / chandrakant agrawal

ALTER TABLE <owner_name.tab_name> RENAME COLUMN <old_name>
TO <new_name>;


We can also modify the datatype,size of the column using
command alter table

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T

1747


What is the difference between timestamp and datetime in mysql?

556


What is mysql in dbms?

489


How Switch (select or use) to a database.

541


What is text in mysql?

499






What is difference between function and procedure in mysql?

456


What is a simple query?

472


Is mariadb better than mysql?

553


What are the different data types in mysql?

474


What is session variable in mysql?

503


Is mongodb faster than mysql?

507


What is the difference between sql and mysql and oracle?

440


What is database engine in mysql?

494


What are the benefits of mysql?

478


what is the difference between the nvl function, ifnull function, and the isnull function? : Mysql dba

531