I'm currently using grails with classes storing java.util.Date fields als DATETIME. However I need the precision / milliseconds to be stored as well which I think is not possible with MySQL.
If I switch to PostgreSQL, will it store my Dates with millisecond precision (or is it easy to configure it this way)?
Yes, since MySql 5.6.4 you can use DATETIME(3) for milliseconds, or DATETIME(6) for microseconds
TIME and other types also now support precision.
http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
Yes, Hibernate / PostgreSQL can also store milisecond precision, no problem. Use the Hibernate timestamp datatype.
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.