pgsql 日期类型比较

 

select * from data_analyze_report where report_code = (select report_code from data_analyze_report_title where server_uuid = '6c9abd37-8bd8-472e-a974-7d0ea3f1a9c6' and report_type = 'DAY' and to_date(report_date , 'yyyy-mm-dd') < to_date('2011-04-26', 'yyyy-mm-dd') ) ;

 

此情况

>号不能用,

只能用<号

 

 

你可能感兴趣的:(c,Date,server,report)