Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to modify a column name in a table?

Status
Not open for further replies.

JTan

Technical User
Oct 9, 2001
73
SG
As mentioned in the title....how to?

A typo error was done but I don't know how to undo..

TIA for any help given. :)
 
ALTER TABLE MyTable CHANGE old_col_name column_definition
 
So, for example:

[tt]alter table tbl_name change col_name_old col_name_new varchar(100)[/tt]

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top