SQL DataType – How to store a year?

regular 4 byte INT is way too big, is a waste of space!

You don’t say what database you’re using, so I can’t recommend a specific datatype. Everyone is saying “use integer”, but most databases store integers as 4 bytes, which is way more than you need. You should use a two byte integer (smallint on SQL Server), which will conserve space.

Leave a Comment