${if(x=0,"and sfsc=0",if(len(starttime)=0,"and sfsc=0","and sfsc=0 and SUBSTR(cjsj,0,10)>='"+starttime+"'",if(len(endtime)=0,"and sfsc=0 and SUBSTR(cjsj,0,10)>='"+starttime+"'","and sfsc=0 and SUBSTR(cjsj,0,10)>='"+starttime+"' and SUBSTR(cjsj,0,10)<='"+endtime+"'")))}
12283(提问者) 回复 ID1208
${if(x=0,\"ELECT yymc,yyfwdz,cjsj FROM USR_DATA.T_JZ_YYTJ where sfsc=0 \",\"ELECT yymc,yyfwdz,cjsj FROM USR_DATA.T_JZ_YYTJ where sfsc=0
if(len(starttime)=0,\"\",\"and SUBSTR(cjsj,0,10)>=\'\"+starttime+\"\'
\")}
这样不可以写嘛