Click to See Complete Forum and Search --> : increasing length of the field
yalini
05-29-2006, 05:36 AM
hi,
I set a very small field length in mysql table and now i like to increase the field length.
would anybody plz help me.
thank u,
:mad: yalini
bokeh
05-29-2006, 05:41 AM
What is the data type?
hi,
if u want to alter the data type then
ALTER table <table_name> modify <column_name> <char_lenght)
eg:
ALTER table customer modify Addr char(30)
hope u got it....
yalini
05-29-2006, 06:09 AM
hi,
thanks jeny
yalini :D
yalini
05-30-2006, 12:13 AM
Hi,
data type I used is varchar.
thanks a lot,
yalini
nabeelisnabeel
05-30-2006, 01:00 AM
Check the table in mySQL interface and click the EDIT (or Change) link.and edit the ield length.
The Little Guy
05-30-2006, 01:12 AM
are you using MySQL? if so, do you have PHP MyAdmin? You can edit it in there if you do.
vdedaniya
05-30-2006, 01:19 AM
Hi,
Why you ppl are not using "SQLyog", its Free MySQL GUI Windows Manager Management Client Tool
You can download "SQLyog" from the URL: http://www.webyog.com/download.php?id=270086
Vishal
bokeh
05-30-2006, 02:06 AM
Hi,
data type I used is varchar.
thanks a lot,
yaliniHave you fixed this already? If not did you want more than 255 characters? If so you will need to change data type (maybe to text) ALTER TABLE tablename CHANGE COLUMN column_name column_name TEXT