Problematic quote within value of a field crashes my sql script
Posted by: Julien Martin
Date: March 01, 2012 12:10PM

Hello,

I have the following dml sql (generated by mysql wb):

INSERT INTO `status_need` VALUES (1,1,1,'famille cherchant une autre famille (pour garde partagée ou sortie d\'école)'),(2,1,2,'famille cherchant professionnelle de la garde d\'enfants'),(3,2,1,'professionnelle de la garde d\'enfants cherchant enfants à garder');

When I run it from java, it raises an error probably because of the apostrophe/quote within the value of the field.

I am not sure why that is because the quote is escaped by a backslash and what is more, this SQL was generated by mysql.

Can anyone please let me know how to solve this problem?

Regards,

Julien.

Options: ReplyQuote


Subject
Written By
Posted
Problematic quote within value of a field crashes my sql script
March 01, 2012 12:10PM


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.