How To Rename MySql Column ?

| More

December 21, 2009

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 me

I am not a proffessional blogger.

Blog Archive

© 2007-2010 ebugg-i.com