tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Kaufman <WKauf...@viquity.com>
Subject RE: jdbc
Date Mon, 16 Jul 2001 14:13:16 GMT
(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:mari.and@tin.it]
> Sent: Monday, July 16, 2001 6:58 AM
> To: tomcat-user@jakarta.apache.org
> 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
> 

Mime
View raw message