Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: open

Message Too Old, No Replies

True False Y N

Working with affiliate data files

     
11:03 pm on Dec 16, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 28, 2005
posts:51
votes: 0


I'm setting up a MYSQL database to use date files from affiliates.

Looking for suggestions on accepted practices for field type when data is
True False
Y N
0 1

3:34 am on Dec 17, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 22, 2001
posts:2450
votes: 0


0 and 1 are always nice :)
3:57 pm on Dec 18, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 28, 2005
posts:51
votes: 0


I was wondering if there were any performance differences between using int, varchar(5), boolean etc. in mysql
6:51 pm on Dec 18, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 30, 2005
posts:515
votes: 0


Yes, there will be differences (in storage requirements as well as performance), but miniscule unless you're talking about millions of rows.

It is always good practice to use the most efficient field type you can - boolean (bit) in this case - assuming you are running MySQL 5.0.3+