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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field renaming in an existing table

Status
Not open for further replies.

Inandjo

Programmer
Dec 7, 2001
46
FR
I have a table I want to alter (i.e. change the field name)
Is there a SQL syntax to perform this operation?
 
ALTER TABLE A CHANGE A B VARCHARS( 20 )

So, using above syntax just replace A with your current column name, replace B with the new column name, then give the column definition, here I used VARCHARS( 20 ) for demo.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top