Use \' inside the string
> Hello,
>
> could someone point me to the right way to escape SQL characters like '
> using JDBC please.
> I mean queries like "SELECT id FROM friends WHERE name = 'd'artanjan' "
>
>
> thank you in advance
>
> Kazys
>
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail java-thread248@stripped
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail java-unsubscribe@stripped instead.
>
Javier.-
---------------------------------
- mail: jcaspen@stripped -
- www " jcaspen.virtualave.net -
---------------------------------