I need to insert a year(eg:1988 ,1990 etc) in a database. When I used Date or Datetime data type, it is showing errors. Which datatype should I use.
Use integer if all you need to store is the year. You can also use datetime if you think there will be date based calculations while querying this column