Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: DBMS_OUTPUT.PUT_LINE question
Well, if you are working with Windows, you can code:
SQL> set serveroutput on
SQL> declare
2 x varchar2(10) := 'HereIAm';
3 begin
4 dbms_output.put_line (' '||x); 5 dbms_output.put_line (chr(10)); 6 dbms_output.put_line (' '||x);
HereIAm
HereIAm
PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
SQL>
You see, what has happend?
The first contains your DBMS-Statement with Blanks from the Space-Key.
The second contains CHR(10) to make a carriage-return.
The third DBMS-Statement contains three blanks made by ALT-255
on your keyboard (I don't know if this will work on Unix).
Hth
Markus
Turdcutter <Turdcutter_at_eremove.edu> schrieb in im Newsbeitrag: 393e373d.153280329_at_news.erols.com...
> How do you get this function to insert leading spaces?
>
> DBMS_OUTPUT.PUT_LINE(' '|| var1)
>
>
> gives no leading spaces
>
>
> ?????
>
>
> also,,,
>
> how could you do a carriage return with this function
> DBMS_OUTPUT.PUT_LINE('') < ---- doesn't seen to work
>
>
>
> thank you
Received on Wed Jun 07 2000 - 00:00:00 CDT
![]() |
![]() |