【发布时间】:2015-11-27 13:26:44
【问题描述】:
我有一个数据库字段timestamp without timezone,它的值类似于2015-11-23 14:42:55.278。
现在我想只使用日期部分 2015-11-13 来查找数据库记录。
这可能吗?
最好使用hibernate和spring。
【问题讨论】:
-
演员表(列为日期)
-
你连接到哪个数据库?
-
那么,您想拥有日期为
2015-11-13的所有记录,而不考虑时间?还是你想要别的? -
日期的所有记录,与时间无关。
标签: java sql hibernate postgresql