Skip navigation links

MySQL Forums :: Connector/JDBC and Java :: Can't send SQL statement containing 'DELIMITER $$'


Advanced Search

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

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject Written By Posted
Can't send SQL statement containing 'DELIMITER $$' Denis Lemberger 05/01/2012 01:58AM
Re: Can't send SQL statement containing 'DELIMITER $$' Mark Matthews 05/01/2012 07:13AM
Re: Can't send SQL statement containing 'DELIMITER $$' Denis Lemberger 05/02/2012 12:11AM
Re: Can't send SQL statement containing 'DELIMITER $$' Mark Matthews 05/10/2012 11:43PM
Re: Can't send SQL statement containing 'DELIMITER $$' Denis Lemberger 05/22/2012 12:15AM


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.