yipych
August 25th, 2009, 09:26 AM
I have a block of SQL commands coming as plain text. It might be one SQL statement or several. I want to split multiple SQL commands so I can run them one at a time.
I am thinking of splitting them using delimiter like semicolon. But the problem is that for PL/SQL block, there will be a semicolon at the end of each line, if I split it using semicolon, the entire PL/SQL block will be divided into many syntactically incorrect pieces.
Any ideas? Thanks!
I am thinking of splitting them using delimiter like semicolon. But the problem is that for PL/SQL block, there will be a semicolon at the end of each line, if I split it using semicolon, the entire PL/SQL block will be divided into many syntactically incorrect pieces.
Any ideas? Thanks!