link saving type

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

link saving type

Post by m2babaey »

Hi
To save a link in a database, should i set the field type varchar or text?
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post by Begby »

varchar is limited to 255 characters. If you are sure your links will be less than that, then use that field. A text field can hold a lot more but has limitations in regards to indexing and searching.
Post Reply