Forum Moderators: open
Please forgive me what I believe is a basic question, but I'm posting this in the light of "doing things right".
So, question is: when a field is defined as a int or float or decimal (or I suppose any other numeric data types) when should you specify the field as "unsigned"?
I've read online that "unsigned" offers some speed or size advantages to these fields, but I'm looking for recommondations regarding "best practices".
Also (and as a minor aside) what do people feel about the decimal or float datatype when you've got to store something like "12.25" to, say "122.75". I thought that float was the preferred method, but after checking the MYSQL manual, it indicated that decimal would be a better choice from a precision standpoint. It really doesn't matter to me, just as long as the specified precision was there...and that I could do calculations on the number if needed.
Thanks to all in advance,
Neophyte