
postgresql
我在云顶山上钓鱼
linux,python,go 分享一些自己的工作和学习所得
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ERROR: date/time field value out of range: “0000-00-00 00:00:00“
Postgre类型timestamp 插入"0000-00-00 00:00:00" 失败create table mytbl1 (dte timestamp);insert into mytbl1 values (now());--Query returned successfully: one row affectedinsert into mytbl1 values ('0000-00-00 00:00:00');--ERROR: date/time field value out of原创 2022-05-13 11:11:41 · 6981 阅读 · 0 评论 -
postgresql 时间时间相加比较
select * from label_record_info where data_create_datetime > ('2022-04-05'::timestamp + ‘8 day’::interval)说明;1.同类型比较,直接用> < = 即可。sql中 data_create_datetime 为时间类型。2.::timestamp 表示转换为timestamp类型。:: 有转换类型的作用。3.interval 表示时间间隔类型。...原创 2022-04-13 17:12:02 · 2268 阅读 · 0 评论