我需要将以下 T-SQL 游标转换为 PL-SQL 游标:
DECLARE employe_cur CURSOR
FOR
SELECT name FROM #table
where salary = 0
OPEN employe_cur
FETCH NEXT FROM employe_cur
WHILE @@FETCH_STATUS <> -1
BEGIN
FETCH NEXT FROM employe_cur
END
CLOSE employe_cur
DEALLOCATE employe_cur
大部分部分都很简单,但是如何转换它
@@ FETCH_STATUS <> -1