[英]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? 我不知道将哪种数据类型分配给yyyy-mm-dd hh:mm:ss格式的数据? I use postgresql database. 我使用postgresql数据库。
You're looking for timestamp
(with or without timezone, with timezone preferred to store the actual data) 您正在寻找timestamp
(带或不带时区,首选时区来存储实际数据)
See PostgreSQL's documentation on Date/Time Types 请参阅有关日期/时间类型的PostgreSQL文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.