找回密码
 立即注册
搜索
查看: 139|回复: 0

[Oracle] SQL查询日期字段=日期字段+时分秒语句

[复制链接]
发表于 5 天前 | 显示全部楼层 |阅读模式

select
to_char(a.check_time,'yyyy-mm-dd hh24:mi:ss'),
to_date(to_char((a.check_time+interval '440608' second),'yyyy/mm/dd hh24:mi:ss'),'yyyy/mm/dd hh24:mi:ss'),  --秒:second
      from peaas.presc a
where a.check_state = 2
and a.check_error_flag = 1
and a.received_doctor_code is not null
and a.presc_date <= to_date('2026-01-01', 'yyyy-mm-dd')
and a.presc_no='17567206601390084752';
欢迎注册吾爱缘分网,在这里可留言管理员需要找的资源哦。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|技术分享

GMT+8, 2026-1-26 16:52 , Processed in 0.061996 second(s), 20 queries .

Powered by 吾爱缘分

© 2024-2024 吾爱缘分

快速回复 返回顶部 返回列表