SQL("c34", "SELECT PRODFROM _L_W ROD_Z_DAI WHERE NAME = '" + E6 + "' and DATE = to_date('${reportDate}', 'yyyy-MM-dd')", 1, 1)
想让DATE=单元格C3填的日期,任何改
SQL("c34", "SELECT PRODFROM _L_W ROD_Z_DAI WHERE NAME = '" + E6 + "' and DATE = to_date('"+C3+"', 'yyyy-MM-dd')", 1, 1)
sql函数里参数不能这么写
'${reportDate}
要写成todate('"+$reportDate+"', 'yyyy-MM-dd')