Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.