Help with field to save a link

0

I need to save a link in the database, which in the case is MySQL, I was using VARCHAR (255), but I easily noticed some of the stored links exceeded 255 characters, what kind of data can I use in the database to store this information? I believe that it should support up to 400 characters, to guarantee

    
asked by anonymous 17.04.2017 / 02:50

1 answer

2

As this response from SOen , then 2048 has to be the maximum for search engines, so I think 400 is very little, I believe this is the least.

Then run:

ALTER TABLE 'tabela' CHANGE 'coluna' 'coluna' varchar(2048) NOT NULL
    
17.04.2017 / 03:18