A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
Escape Character Help
sumeet mittal
Greenhorn
Joined: Dec 22, 2001
Posts: 4
posted
Jul 09, 2002 12:24:00
0
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: 1506
posted
Jul 09, 2002 13:11:00
0
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
subject: Escape Character Help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter