(You know, this has nothing at all to do with Tomcat, or even servlets,...)

Use a PreparedStatement, and call setString().

                                        -- Bill K. 

> -----Original Message-----
> From: Andrea Mari [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 6:58 AM
> To: [EMAIL PROTECTED]
> Subject: jdbc
> 
> 
> Hi,
> 
> how can I escape automatically the query strinng when it 
> contains invalid
> character as ' or \ ?
> 
> I know that in php there is a directive that do it.
> 
> Can you help me?
> 
> Andrea
> 

Reply via email to