I have a table for a website, and the field type is currently Text, but I want to change it to longtext. Anyone can help me please? Keep in mind that SQL is totally new to me. I browsed through phpMyAdmin and Google.. but I didn't find how to do it.
Thanks for your help.
SQL Change Field Type?
Started by TcM, Nov 30 2007 10:29 AM
2 replies to this topic
#1
Posted 30 November 2007 - 10:29 AM
|
|
|
#2
Guest_Jordan_*
Posted 10 December 2007 - 04:35 AM
Guest_Jordan_*
You have to use the ALTER command:
Execute that in the SQL tab on phpMyAdmin.
ALTER TABLE t1 CHANGE a LONGTEXT;
Execute that in the SQL tab on phpMyAdmin.
#3
Posted 12 December 2007 - 02:32 PM
Thanks.. I would assume that t1 is the table name and that a is the field name?


Sign In
Create Account


Back to top









