当前位置:Gxlcms > 数据库问题 > postgresql -sql

postgresql -sql

时间:2021-07-01 10:21:17 帮助过:23人阅读

select * from task where to_date(deadline, ‘yyyymm‘)<to_date(‘201909‘, ‘yyyymmdd‘)//查询指定月份之前

 

 

 

select * from task where to_date(deadline, ‘yyyymmdd‘)<now()   //查询当前日期之前   

postgresql -sql

标签:pos   rom   sele   to_date   sel   where   lin   now()   res   

人气教程排行