Link Details

Link 138161 thumbnail
User 71517 avatar

By Volume4
via sql.dzone.com
Published: Dec 02 2008 / 09:01

One of the biggest mistakes of today's fledgling MySQL programmers is their field type definitions, also known as data type or column type. Many are too quick to set up their tables, flying through the different options without giving it much thought. The time you spend setting up your tables will save you from many headaches later on down the road.
  • 14
  • 2
  • 962
  • 376

Comments

Add your comment
User 309827 avatar

geetee replied ago:

1 votes Vote down Vote up Reply

I wouldn't store a phone number as an integer. Leading zeroes will be chopped off.

User 201914 avatar

nightwind replied ago:

0 votes Vote down Vote up Reply

"It is important to note that because of the way DOUBLE works it should never be used for precise values such as currency."
Voted up even just for that one hint. Can't be said often enough.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.