Jump to content

Changing a Database Table


TheLostGuru

Recommended Posts

Is it possible to change a table in a database without just dropping it and recreating it.  As example, I have a photo column which stores an URL, but it seems to only be accepting about 25 characters.  Is there a way I can update the table without starting it over?  Also, when I made the photo column I think I put, photo varchar(25), is there any reason I don't want to make it like varchar(1000), although I know that varchar only accepts 255, so what do I change varchar to?

Link to comment
https://forums.phpfreaks.com/topic/55335-changing-a-database-table/
Share on other sites

Just go into your database, and you should be able to change the field types from there without disrupting anything in the table...unless there is already something inserted into the table that your new field type won't be compatible with.

 

I would probably change the varchar to a TEXT or BLOB type.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.