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 throwing SQLException : GeneralError 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 "throwing SQLException : GeneralError" Watch "throwing SQLException : GeneralError" New topic

throwing SQLException : GeneralError

amarnath jha

Joined: Aug 07, 2006
Posts: 18
my programe is throwing SQLException GeneralError using oracle9i

//this is code

public void insertData(String name,int id,float price,int sales,float total)
//columns = statement.executeUpdate("insert into coffees values ("+name+","+id+","+price1+","+sales1+","+total1+")");
pStatement = connection.prepareStatement("insert into coffees values(?,?,?,?,?)");
System.out.println("no of rows inserted "+columns);
//catch block and other code
Arvind Sampath
Ranch Hand

Joined: May 11, 2005
Posts: 144
my programe is throwing SQLException GeneralError using oracle9i

Where? Which line no.? Post the Stack Trace for the exception
[ August 09, 2006: Message edited by: Arvind Sampath ]
I agree. Here's the link:
subject: throwing SQLException : GeneralError
Similar Threads
5 INSERT but only 4 in my access table
What's the problem(about update)?
oracle connection with jdbc
throwing SQLException : GeneralError
my java application doesn't update the table?