1. Home
  2. Computing & Technology
  3. PHP / MySQL

Change MySQL Command

By , About.com Guide

Definition: Change is used to alter an existing column in a MySQL table. You can use change to rename a column by providing both the old column name, and the new column name. It is written as: alter table [table name] change [old column name] [new column name] varchar (30) ;
Also Known As: Change Column, Rename Column
Examples:
alter table colors change tone hue varchar (10) ;
This causes the column called "tone" to be renamed to "hue" on the table called "colors".
Explore PHP / MySQL
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. MySQL Commands
  5. Alter Table Change - MySQL Change - SQL Change

©2009 About.com, a part of The New York Times Company.

All rights reserved.