I have a problem with the command dbms_output.put_line().
I have a variable pres_name and I would like to print the value on the screen. Therefore I use dbms_output.put_line() but the command doesn't accept this type of Variable but all sites that I found they use it like dbms_output.put_line(varchar variable).
But I get this warning:
Fehler(15,5): please-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'PUT'
In English:
wrong quantity or types of arguments on the invocation of put
I use Oracle sql developer.
The code:
create or replace
procedure ex10_1
(
pr_name varchar
)
as
cursor pres is select vice_pres_name from admin_pr_vp;
begin
open pres;
for pr_name in pres loop
dbms_output.put_line(pr_name);
end loop;
end;
ps: the code is not perfect yet.
varchar, too? You need justdbms_output.put_line(your_variable). Try a simpler thing first:dbms_output.put_line('hello, world').