Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

how to cahnge delimiter in Mysql from a java program

Thread view: 
Sarath - 25 Oct 2006 10:51 GMT
Hi all,

I have a small problem.
I have to change the default delimiter of MySql from ';' to '$'.

When i give the command "delimiter $" in the MySql  command prompt it
works fine.
But when i do the same thing from my code :

statement.execute("DELIMITER $")

it gives this error,
"java.sql.SQLException: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'DELIMITER $' "  Exception.

If any one has any clue... pls tell me where it is going wrong.

thank you,
Sarath
Arne Vajhøj - 26 Oct 2006 01:35 GMT
> I have a small problem.
> I have to change the default delimiter of MySql from ';' to '$'.
[quoted text clipped - 11 lines]
>
> If any one has any clue... pls tell me where it is going wrong.

What JDBC driver version are you using ?

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.