db2按时间戳或日期条件查询 |
您所在的位置:网站首页 › 推特指定日期查询 › db2按时间戳或日期条件查询 |
我一同事写的.记录一下 substr(char(timestamp),1,10) = #date# timestamp是表中timestamp字段 #date#是条件值 select * from table where substr(char(timestamp),1,10) = #date# 时间戳查询 ===========补充 日期类型查询 select * from table where date = 'yyyy-MM-dd' 时间戳类型查询 select * from table where time = 'yyyy-MM-dd HH:mm:ss' |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |