_tally 系统内存变量示例

下面的示例使用 select 语句返回美国顾客数目。结果自动存入 _tally 系统变量中,然后显示 _tally 的值。

select * from customer ;
   where country = 'usa' ;
   into cursor temp
? _tally