Re: Anyone have trouble issuing a DELIMITER command via JDBC driver?
Posted by: Bill Karwin
Date: December 13, 2006 08:52PM

Oh another comment about supporting DELIMITER.

If you're processing a SQL script, your code does need to pay attention to DELIMITER, so it knows how to parse the following statements. Statements can be multiple lines long. So instead of reading line by line, you need to read input from the script file up to the next occurrence of the characters defined by DELIMITER. The delimiter can be a single character or multiple characters:

DELIMITER !!

SELECT foo 
FROM bar!!

DELIMITER ;

SELECT baz 
FROM bling;

Regards,
Bill K.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.