What datatype should i use for year?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poopsy
    New Member
    • Nov 2006
    • 50

    What datatype should i use for year?

    hi..i am creating a table where i have a file "year", wat datatype shud i use as i only want the year and not the full date
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    Originally posted by poopsy
    hi..i am creating a table where i have a file "year", wat datatype shud i use as i only want the year and not the full date
    If you mean "column year" you can use any of numerc datatypes (numeric, int,...) see all at postgresql.org

    Comment

    Working...