将timestamp值与postgresql中没有timezone列的时间戳进行比较

时间:2018-05-10 10:26:56

标签: postgresql postgresql-9.3

select * from Test_DB.Test_Tab where column = '2018-05-10 05:00:02'

我希望获得此查询的o / p,该表包含时间戳值为' 2018-05-10 05:00:02'对于列,但是o / p给出了0条记录。

列的数据类型为"没有时区"的时间戳,也使用如下,但它不起作用。

select * from Test_DB.Test_Tab where column::timestamp = '2018-05-10 05:00:02'::timestamp

::日期输出如下

2018-05-10 04:03:18
2018-05-10 04:03:21
2018-05-10 04:03:20
2018-05-10 04:03:18
2018-05-10 05:00:02

0 个答案:

没有答案