File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Escape Character Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Escape Character Help" Watch "Escape Character Help" New topic

Escape Character Help

sumeet mittal

Joined: Dec 22, 2001
Posts: 4
my query is
insert into table1 values('sumeet's','query1')
both column's are of varchar datatype
How can i do this.??
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You are better of using a prepared statement. It takes care of escape characters

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: Escape Character Help
It's not a secret anymore!