I would like to delete empty lines and spaces of my query results?

11 GR 2

-----------------------------------------------------

My query:

Select REGEXP_REPLACE (dbms_metadata.get_ddl ('PROCEDURE', 'HEL_'), ('user1...') ", 1, 0, 'i') of double

-------------------------------------

result:

CREATE OR REPLACE PROCEDURE "HEL_"
as

begin

  dbms_output
.put_line('Hello!');

end;


------------------------------


expected result:

CREATE OR REPLACE PROCEDURE "HEL_"
as
begin
dbms_output
.put_line('Hello!');
end;




Hello

I don't think that there is a way to make changes in the same regular expression.  You can do a REPLACE separate to get rid of 'the USER '. nesting into one another, like this:

SELECT REGEXP_REPLACE (REPLACE (dbms_metadata.get_ddl ('PROCÉDURE', 'HEL_')

"' USER1'."

)

, '^\s+'

NULL

1

0

, 'm'

) AS less_whitespace

OF the double

;

Tags: Database

Similar Questions

Maybe you are looking for

  • where is the library in Mozilla

    Hello(1) when I download a file, Mozilla reports that it is in the library. Where can I find the library, please.(2) how to remove passwords and user names that appears automatically when I start a program? (IE when I start to open my mails)Thank you

  • Printing from iphone 4

    Just installed wireless officejet pro 8600. What should I do with iphone 4 to send to the printer

  • Is it possible to slow down the movement of the cursor?

    I want to slow down the speed of the cursor.

  • Click with the right button on dialog question

    When you right click on a file, you see a dialog box that contains the things that you can do with it. Back at the turn of the century when we had win 98 and XP, these dialog boxes have been stored on the computer and you can rearrange or delete the

  • BlackBerry App World Blackberry Smartphones is launched

    Hi all, I did not see anyone else post this ad then I thought that I have.  I got this news this morning of the daily update of ZDNet Tech so I clicked the link and downloaded the software from RIM.  I just downloaded an app free radio and the proces