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
special charcter in oracle urgent
pavi kavi
Ranch Hand
Joined: Mar 01, 2001
Posts: 56
posted
Sep 24, 2001 02:59:00
0
Hello
I have a problem in inserting the follwoign special charcter into oracle
1.&
2.'
3.%
4.@
can some body tell me how can i do it in
java
pavithra
Jamie Robertson
Ranch Hand
Joined: Jul 09, 2001
Posts: 1879
I like...
posted
Sep 24, 2001 08:00:00
0
the easiest way to deal with special characters in oracle is:
String sql = "insert into test values (1,?)"; PreparedStatement ps; Connection sconn; try{ sconn = DBConnect.getConnection(); //connect to the database //sconn.setAutoCommit(false); s = sconn.prepareStatement(sql); s.setString(1,"ss&s"); s.executeUpdate();
The above will insert the value "ss&s" into the row. This works for all special characters.
Jamie
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: special charcter in oracle urgent
Similar Threads
inserting text with single and doubl quotes
Unicode Character
Weblogic support for Japanese Character
Date Insertion using XSU...
can i send character encoding with the url
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter