MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: Can't send SQL statement containing 'DELIMITER $$'
Posted by: Mark Matthews
Date: May 01, 2012 07:13AM

Hi Denis,

"DELIMITER" is not SQL, it is a keyword for the mysql command line client. It serves the purpose of telling the client that you have composed an entire statement (or sequence of statements), and it should be sent to the server.

If you're using a client library, such as JDBC, there is no need for this keyword, since you hand over the statement delimited in some other way, i.e. in Java, you send a java.lang.String to Statement.execute*(), and the driver knows the end of this because a string has a defined number of characters in it.


Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools

Options: ReplyQuote

Written By
Re: Can't send SQL statement containing 'DELIMITER $$'
May 01, 2012 07:13AM

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.