select * from canyin.cxt_dishesinfor where dingtime   IS NOT NULL and cxt_state < 1 
   and date(inputtime) = current_date and  dingtime < (current_timestamp - interval ''60 minutes'') ;

is not null  字段不为空

date(inputtime) = current_date  日期=今天

 dingtime < (current_timestamp + interval ''60 minutes'')  预定时间一小时前的

Logo

一站式 AI 云服务平台

更多推荐