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 to return query output in html format?

941


How do I show users in mysql?

1065


Write command to import an mysql file?

1036


How does triggers work in mysql?

974


How to Set a root password if there is on root password.

1093


What are the objects can be created using CREATE statement?

995


How to get a list of all tables in a database?

1060


Does mysql support nosql?

916


How to write optimized query in mysql?

990


How can an index be declared in mysql?

948


Can I use mariadb instead of mysql?

924


Explain the difference between primary key and candidate key in mysql?

968


What is offset limit?

965


all the queries used in sql

2661


What is limit in mysql?

870