The moose likes JDBC and Relational Databases 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How to use escape sequence" Watch "How to use escape sequence" New topic

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

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]
I agree. Here's the link:
subject: How to use escape sequence
It's not a secret anymore!