Home » Developer & Programmer » JDeveloper, Java & XML » how to insert date oracle 9
how to insert date oracle 9 [message #134965] Mon, 29 August 2005 04:01 Go to next message
nsathishbabu
Messages: 1
Registered: August 2005
Location: Bangalore
Junior Member
hi i am using prepared statement to insert values into databases

i dnt know how to insert date ...


String name="hello";
String jdate="18-MAY-2005";
PreparedStatement ps=connection.prepareStatement("insert into sample (name,jdate)"+"values(?,?)");
ps.setString(1,name);
ps.setString(2,jdate);

the above stmt gives error....
Re: how to insert date oracle 9 [message #135279 is a reply to message #134965] Tue, 30 August 2005 14:19 Go to previous message
Art Metzer
Messages: 2480
Registered: December 2002
Senior Member
See this thread.
Previous Topic: XMLType DTD Non-Validating
Next Topic: Date Problem
Goto Forum:
  


Current Time: Mon Nov 25 10:41:10 CST 2024