Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / chaithra.t

ALTER TABLE tablename RENAME COLUMN old_columnname TO
new_columnname;

above is to change the column name of the table.
In case if u want to change the table name then:

ALTER TABLE tablename RENAME TO new_tablename;

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How important is to list the column names when doing an insert?

991


How to copy data from one server to another using php?

978


What does mysql flush tables do?

907


What are the features of mysql?

943


What do you understand by mysql terminal?

984


How do you connect MySQL database with PHP?

925


What are the difference between and myisam and innodb?

954


How do I insert an image into mysql workbench?

896


What command is used to delete the data from the table without deleting the table structure?

898


What is mysql installer?

947


How can we get the number of rows affected by query?

988


What is the maximum number of columns per table?

869


How does mysql clustering work?

849


What is a left join mysql?

846


What is the role of a limit in a mysql query?

947