Which datatypes should I be using?

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
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Which datatypes should I be using?

Post by nutstretch »

If I am creating a field which is to hold string data. Should I be declaring these as char or varchar. what is the difference bewteen them?

Cheers in anticipation Sorry sometimes I am really thick!!
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Check out the manual at mysql.com for the run down on col types.
Post Reply