${if(len(spu)==0,"","and ROWNUM <= '" + spu + "'")}
帮我看下这个哪里写错了
select * from a where 1=1
${if(len(spu)=0,"","and ROWNUM <= '" + spu + "'")}
ROWNUM 这个是数据库关键字,字段名最好换一个
这个是当spu为空,取前几条记录?