aspose file tools*
The moose likes JDBC 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
Bookmark "Escape Character Help" Watch "Escape Character Help" New topic
Author

Escape Character Help

sumeet mittal
Greenhorn

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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Escape Character Help