数据库用日期作为条件来查询数据

select * from bs_child_baseinfo t WHERE to_char(birthday,'yyyymmdd')='20180313'