May 2020
Beginner
564 pages
14h 9m
English
The differences between variables in each of the RDMSes are outlined as follows:
DECLARE var_parkname varchar2(100); var_parkkey varchar2(5) := 'ALB01'; BEGINSELECT parkname INTO var_parkname FROM parks_copyWHERE parkkey = var_parkkey; DBMS_OUTPUT.PUT_LINE(var_parkname);END;
The query has you declare a variable for parkkey (var_parkkey), as well as for the output of the query with the variable in it, which is named var_parkname. Then, you output var_parkname to get the results.
Read now
Unlock full access