Home » SQL & PL/SQL » SQL & PL/SQL » COALESCE declaration
COALESCE declaration [message #2233] Mon, 01 July 2002 06:09 Go to next message
Nitin Jain
Messages: 7
Registered: October 2001
Junior Member
Hello,
I am using the given insert statement while creating a function, but it gives the following error.
LINE/COL ERROR -------------------------------------------------------
65/2 PL/SQL: SQL Statement ignored
70/6 PLS-00201: identifier 'COALESCE' must be declared


INSERT INTO t_arch (id, parent_node_id, child_node_id, parent_ord_no, child_ord_no, type_id, specified_in_dom)
(SELECT sq_arch.NEXTVAL,
nodeId,
newChild,
1,
COALESCE(MAX(child_ord_no), 0) + 1,
newArchTypeId,
1
FROM t_arch
WHERE parent_node_id = nodeId AND
specified_in_dom = 1
);

Regards
Re: COALESCE declaration [message #2236 is a reply to message #2233] Mon, 01 July 2002 06:48 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
i believe,
Built-in Function coalesce is supported only from 9i.
Are you using oracle 9i?
Previous Topic: Related to PL/SQL
Next Topic: Embedded single quotes in values passed as parameters
Goto Forum:
  


Current Time: Wed Apr 24 11:34:01 CDT 2024