Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

t sql cursor tr

BEGIN
  DECLARE cur_employee CURSOR FOR
      SELECT Surname
      FROM Employees;
  DECLARE name CHAR(40);
  OPEN cur_employee;
  lp: LOOP
    FETCH NEXT cur_employee INTO name;
    IF SQLCODE <> 0 THEN LEAVE lp END IF;
    ...
  END LOOP;
  CLOSE cur_employee;
END
Source by dcx.sap.com #
 
PREVIOUS NEXT
Tagged: #sql #cursor #tr
ADD COMMENT
Topic
Name
8+1 =