如下语句,在SQL里面运行正常,select * from supe_spaceitems where catid=98 and itemid not in(select t.itemid from(select * from supe_spaceitems where catid=98 and haveattach=1 order by itemid desc limit 1) as t) order by itemid desc limit 3;
我想把它放在“模板模块向导”的“高级模式”里面,该怎么用?
我只知道当SQL里面只有一个limit时,可以在“起始数据行数”、“显示数据条数”里面写上数字0,3,来代替limit 3,可是要怎么写才可以使里面的limit 1也有作用?