Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change column size in MySQL
Message
From
27/04/2007 17:32:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Change column size in MySQL
Miscellaneous
Thread ID:
01220645
Message ID:
01220645
Views:
53
I have myTable with MyColumn VARCHAR(50)

I need to change the length of this field to 100

I tried
ALTER TABLE myTable ALTER COLUMN myColumn VARCHAR(100);
but that generated an error. So I tried
ALTER TABLE myTable CHANGE myColumn myColumn VARCHAR(100);
but that generated the same error.

I can drop the column and recreate it, but I'm wondering what the correct syntax is.

Thanks to all..........Rich

UPDATE.......the second command worked. I had not editted the original command correctly in the viewer.
Next
Reply
Map
View

Click here to load this message in the networking platform