Good morning everyone!
I am new to Oracle scripting, I am from the SQL environment and now I have to create a script but I would like to assign the default value to a variable and I keep getting the error Bind variable "DOCKET_NO1" not declared.
Here is the query I am trying to run. Why is this not working!
DECLARE
DOCKET_NO1 NVARCHAR2 (14) := '2005-001-00001';
SELECT H.CREATOR AS PRTCP, M.NAME AS PRTCPNAME
FROM MECTS_HISTORY H
INNER JOIN MEMBER M ON M.MEMBERID = H.CREATOR
WHERE H.DOCKET_NO =
OCKET_NO1
ORDER BY M.NAME;
I am new to Oracle scripting, I am from the SQL environment and now I have to create a script but I would like to assign the default value to a variable and I keep getting the error Bind variable "DOCKET_NO1" not declared.
Here is the query I am trying to run. Why is this not working!
DECLARE
DOCKET_NO1 NVARCHAR2 (14) := '2005-001-00001';
SELECT H.CREATOR AS PRTCP, M.NAME AS PRTCPNAME
FROM MECTS_HISTORY H
INNER JOIN MEMBER M ON M.MEMBERID = H.CREATOR
WHERE H.DOCKET_NO =
ORDER BY M.NAME;