On my website, an user can insert a hyperlink in a text input field. Then, this link (a string) is stored in my database.
On MySQL, the field that contains the hyperlink string is TEXT
type, but I think its too long for this kind of information. Besides, VARCHAR(255)
is too short sometimes.
What's the best type/length to store a hyperlink? It would be nice to know how long a link can be.