How To Rename MySql Column ?


You can rename column in MySql using "CHANGE" along with "ALTER". Here is an example...

Here we want to rename/change the column "telephoneno" to "Mobileno" in table "addressbook".

Mysql> alter table addressbook change telephoneno Mobileno int(10);

Share/Bookmark

0 comments:

About This Site

Ebugg-i help you to learn and discover new technology, news, reviews, Tutorials, how to, threat alerts and other security
information, Network Testing tools. - www.mydigg.in

Our sites
http://network-speed.com
http://imygs.com

Blog Archive