Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

postgresql - datetime: does postgresql have datetime type like in mysql?

Tags:

sql

postgresql

I know in mysql there is datetime type but couldn't find couterpart in postgresql. I know there is timestamp type in postgresql but that's a timestamp instead of datetime.

Thanks

like image 994
JamesWang Avatar asked Jun 13 '26 05:06

JamesWang


1 Answers

A MySQL DATETIME is equivalent to a PostgreSQL TIMESTAMP.

Both store a date+time value in an undefined time line. They assume the time offset or time zone is of no interest, or is defined by the application.

like image 156
The Impaler Avatar answered Jun 16 '26 06:06

The Impaler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!