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

Change column name

Status
Not open for further replies.

bastienk

Programmer
Joined
Mar 3, 2004
Messages
326
Location
CA
is it possible?

i am trying

Code:
ALTER tester CHANGE  COLUMN  'Blah' 'blah'

Hints will be appreciated

TIA



Bastien

Cat, the other other white meat
 
no joy...

RENAME COLUMN tester.Blah TO blah1

MySQL said:


#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLUMN tester.Blah TO blah1' at line 1


Bastien

Cat, the other other white meat
 
Try:
[tt]
ALTER TABLE tester RENAME blah blah1
[/tt]


-----
ALTER world DROP injustice, ADD peace;
 
nope...found success with


ALTER TABLE tester CHANGE Blah blah varchar(10);


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top