需要先做一次加工,把记录号变成字段
SELECT RECNO() rec,* FROM k1 INTO CURSOR xx1
SELECT * FROM xx1 WHERE n1=91 UNION ALL SELECT * FROM xx1 WHERE rec in (SELECT rec+1 FROM xx1 WHERE n1=91) ORDER BY rec
需要先做一次加工,把记录号变成字段
SELECT RECNO() rec,* FROM k1 INTO CURSOR xx1
SELECT * FROM xx1 WHERE n1=91 UNION ALL SELECT * FROM xx1 WHERE rec in (SELECT rec+1 FROM xx1 WHERE n1=91) ORDER BY rec