year(time) = YEAR ( date_add( time, INTERVAL - 1 year ) )
怎么把上面这个表达式放到下面这个公式里去
${if(len(time)=0,"","and a= '"+time+"'")}
可以简写更好
举例:
转换日期查实为年-月 ${if(p_creation_date_begin = "","","and a.creation_year_month >= '" + left(p_creation_date_begin,7) + "'")}我这个是可以运行成功的。
${if(len(time)=0,"","and a= '"+YEAR ( date_add( time, INTERVAL - 1 year ) )+"'")}
${if(len(year(time))=0,"","and a= '"+YEARDELTA(TODAY(),-1)+"'")}