sql - 如何用结束日的时间获取日期减去日期
问题描述
我的 date_end 时间为 01.01.2020 11:53、01.01.2020 14:28、03.01.2020 09:51、03.01.2020 06:02、04.01.2020 19:45。我愿意
date_end < to_date('03.01.2020 23:59', 'dd.mm.yyyy HH24:mi')
我只得到 01.01.2020 11:53、01.01.2020 14:28。我怎么能在没有 04.01.2020 的情况下所有 date_end
解决方案
the query looks ok. the only thing you need to check is the datatype of date_end
column. It is probably not in the datetime format, and It only holds date without time fraction
推荐阅读
- java - 从 gradle 中以管理员身份运行 groovy 脚本,即没有管理员命令提示符
- flutter - How do i use flutter variables from main.dart in other screen.dart files in the same lib folder?
- vue.js - 如何在 vue 测试工具中模拟 navigator.clipboard.writeText
- angular6 - 如何在 Angular 8 中使用 web api 创建动态图表
- asp.net-core - 即使对于完全限定的引用,省略 using 语句也会导致错误
- database - AS 函数在 LARAVEL 数据库语句中不起作用
- ansible - Ansible HP OneView 模块logicalPortConfigInfos 故障
- php - 使用 Instagram 登录
- node.js - 如何在nodejs中运行命令''git rev-parse $REVISION'
- json - AWS CloudFormation Cognito Identity Provider (SAML)