需要一条tp5查询语句。
从数据库里面查询所有本月过生日的人,有农历和阳历生日。
因为有时候农历和阳历相差一个月,所以需要对一个字段用两种模糊查询。
生日的数据表存储格式是:1994-09-09
然后请问怎么写模糊查询语句?
这个是不行
$rs_staffLists=$staffLists->where("stBlacklist=0 AND stJobState=1 AND stBirthdateType=2 AND (stBirthdate like '%-$nl-%')")->where("stBlacklist=0 AND stJobState=1 AND (stBirthdate like '%-$yl-%')")->select(); 最佳答案