在Oracle,SQLServer中游标的使用是经常的,所以在ABAP不懂是不行的...... 1.声明游标 OPEN CURSOR [WITH HOLD] <c> FOR SELECT <result> FROM <source> [WHERE <condition>] [GROUP BY <fields>] [HAVING <cond>] [ORDER BY <fields>].
1.使用where语句不推荐Select * from zflight.Check : zflight-airln = ‘LF’ and zflight-fligh = ‘BW222’.Endselect.推荐Select * from zflight where airln = ‘LF’ and fligh = ‘222’.Endselect. 2.使用聚合函数不推荐Maxnu = 0.Select * from zflight where airln = ‘LF’ and cntry = ‘