homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

True False Y N
Working with affiliate data files

 11:03 pm on Dec 16, 2005 (gmt 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
0 1



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

0 and 1 are always nice :)


 3:57 pm on Dec 18, 2005 (gmt 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)

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+

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved