CREATE function f4001 return varchar2
is
begin
return rpad('*', 4100, '*');
end;
select f4001() from dual;
doesn't work: sql buffer to small
therefore to assign a sql variable I use that:
variable buffer varchar(32000);
execute :buffer = f4001();
I can print it:
print buffer
but I can't prompt it. Or use itas an argument for a powershell function:
host powershell echo '&buffer'
for that reason I have to use 'define' or 'column'.
define : I have'nt find a way to give the result of a pl/sql function with define. All I can do is:
define buffer= cte
column: work only for varchar(N) with N>4000.
column buffer new_value buffer
select f3999 as buffer from dual
OK
select f4001 as buffer from dual
buffer to small