定义一个游标

最近更新时间: 2025-10-11 18:10:00

postgres=# begin;
BEGIN
postgres=#  DECLARE tbase_cur SCROLL CURSOR FOR SELECT * from tbase ORDER BY id;              
DECLARE CURSOR

注意:

游标需要放在一个事务中使用。