IF DBMS_SQL.FETCH_ROWS(v_CursorID) = 0 THEN
EXIT;
END IF;
DBMS_SQL.COLUMN_VALUE(v_CursorID, 1, maxp);
DBMS_SQL.CLOSE_CURSOR(v_CursorID);
END LOOP;
UPDATE FIELD set
FLDMXMSTRNG = maxp
where STRCTRSYSTMNM = p_table and
FLDSYSTMNM = p_column
;
END;
/
10-26-2000, 10:26 AM
akkerend
Check the column name (p_column) retrieved from the select into statement.
10-27-2000, 03:13 PM
mber
First, the passing parameters:
.................
(p_table_id VARCHAR2(50),
p_column_id VARCHAR2(50)) will give warning error( not fatal error) while compiling the procedure, so they should be:
.................
(p_table_id VARCHAR2,
p_column_id VARCHAR2)
Second, the select....... into ........ statements will return more than one rows that satisfy the condition probably, but I'm not sure this is the exact reason for the error occurred, I don't know what are the "---------" means in the two "select into" statements.