*
The moose likes JDBC and the fly likes How to use escape sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to use escape sequence" Watch "How to use escape sequence" New topic
Author

How to use escape sequence

John King
Ranch Hand

Joined: Aug 27, 2002
Posts: 165
Could anyone post an example on
escape sequence in JDBC? Why should we
use it? Thanks.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Are you curious about escaping certain characters?
The easiest thing is to not worry about it. Take a look at using a PreparedStatement.
I'd suggest taking a look at the PreparedStatement documentation and trying a quick search on this forum. (The search page link is at the top right of this page.)
[ April 04, 2003: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to use escape sequence