select *if(datedif('${end_c}','${start_c}',"D")<=1,'from aa',
if(datedif('${end_c}','${start_c}',"D")>7,'from bb','from cc'))
这个语句如何实现尼??
select *${if(datedif(end_c,start_c,"D")<=1,"from aa",if(datedif(end_c,start_c,"D")>7,"from bb","from cc" ))}
select *
${if(datedif('${end_c}','${start_c}',"D")<=1,'from aa',
if(datedif('${end_c}','${start_c}',"D")>7,'from bb','from bb'))}