If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > MySql & Java code, how to write blob to Sql Insert statement?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-07, 03:26
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Talking MySql & Java code, how to write blob to Sql Insert statement?

Hi!!!!
I'm doing Java class that acquire metadata from Database and write all statements sql (DML) to output file.
I have no problem excepting BLOB type!!
I opened one backup file for example and I saw that BLOB type starting with '0x' + binary data...

Have you any ideas?!
Reply With Quote
  #2 (permalink)  
Old 06-04-07, 02:24
modsiw modsiw is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
You have to use a prepared statement.

http://java.sun.com/javase/6/docs/ap...Statement.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On