你的那个d.date要与后面的Date要匹配,你to_char 用的地方不对
我记得好像直接比就行 等号就行
from Member as d where to_char(d.date,'yyyy-MM-dd')=
你用的是什么数据库?to_char函数应该是oracle的,mysql没有的