Oracle acquisition condition is the data of the current day

SQL

SELECT * FROM 表名 WHERE 字段名 between
to_date(to_char(sysdate,'yyyy-mm-dd') || ' 00:00:01','yyyy-mm-dd hh24:mi:ss') and
to_date(to_char(sysdate,'yyyy-mm-dd') || ' 23:59:59','yyyy-mm-dd hh24:mi:ss');

reference article

おすすめ

転載: blog.csdn.net/wyzyysw/article/details/113845671