This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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