I would like some guidance on this problem. Below is a Oracle stored procedure that will update a selected table row based on pass variables. The variable key fields sent to the procedure are used in a select comparison.
I am getting a missing "FROM" syntax error when compiling the procedure.
Thanks in advance.
--------------------------------------------
CREATE OR REPLACE PROCEDURE prism.Sp_Upd_Xmldoc(NODEID IN VARCHAR2, DOCTYPE IN VARCHAR2, DOCREF IN VARCHAR2,
xmldata IN SYS.XMLTYPE)
AS
BEGIN
UPDATE PRISM.NODALXML X
SET (X.XMLDOC) =
(SELECT XMLDATA
WHERE X.NODEID = NODEID AND X.DOCTYPE = DOCTYPE AND X.DOCREF = DOCREF);
END;
/
I am getting a missing "FROM" syntax error when compiling the procedure.
Thanks in advance.
--------------------------------------------
CREATE OR REPLACE PROCEDURE prism.Sp_Upd_Xmldoc(NODEID IN VARCHAR2, DOCTYPE IN VARCHAR2, DOCREF IN VARCHAR2,
xmldata IN SYS.XMLTYPE)
AS
BEGIN
UPDATE PRISM.NODALXML X
SET (X.XMLDOC) =
(SELECT XMLDATA
WHERE X.NODEID = NODEID AND X.DOCTYPE = DOCTYPE AND X.DOCREF = DOCREF);
END;
/