简体   繁体   中英

Datatype to store date of format yyyy-mm-dd hh:mm:ss in postgresql

I am not knowing which datatype to be assigned to the data of format yyyy-mm-dd hh:mm:ss? I use postgresql database.

You're looking for timestamp (with or without timezone, with timezone preferred to store the actual data)

See PostgreSQL's documentation on Date/Time Types

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM