I am trying to execute the below query and trying to get output in variable.
DECLARE LATESTID INT
SELECT LATESTID := ID FROM Cust_RectifiedDetails WHERE CustNo = UNIFIEDCUSTOMERNO
ORDER BY ID DESC
But while executing i am getting the below error :
ORA-24344: success with compilation error PLS-00103: Encountered the symbol "LATESTID" when expecting one of the following: := . ( @ % ; not null range default character
Kindly please guide me Regards