GBase 8s
其他
问答

查询时间在2024-03-22之前的数据sql语句这么写对么?

发表于2024-03-21 13:56:2847次浏览3个评论

【GBase版本】: 350

【操作系统】: linux x86

【CPU】: intel

【问题描述】*:

select count(*) as count from af_skedsupp where beg_date is not null and beg_date<=2024-03-22 00:00:00.0

评论

登录后才可以发表评论
用户头像
路路路发表于 2年前
select count(*) as count
from af_skedsupp
where beg_date is not null and beg_date<='2024-03-22 00:00:00.0'
最佳回答
用户头像
liaosnet发表于 2年前
日期需要日期类型或者符合日期格式的文本类型。
GBase用户51883发表于 2个月前
围观了。