Public class Data {
The Connection con=null;
Record Record=null;
Public ResultSet getTableInfo (String tableName, String wheStr, String orderField, String orderMethod, int page, int the items)
{
This. Record=new record ();
The ResultSet rs=null;
Try
{
DbConnection1 bConnection1=new DbConnection1 ();
Con=bConnection1. InitConn1 ();
The CallableStatement cs=getCon (.) prepareCall (" {call gzagritemp. Datamanage. GetTableInfo (? ,? ,? ,? ,? ,? ,? ,? ,?) } ");
Cs. SetString (1, tableName);
Cs. SetString (2, wheStr);
Cs. SetString (3, orderField);
Cs. SetString (4, orderMethod);
Cs. SetInt (5, page);
Cs. SetInt (6 items);
Cs. RegisterOutParameter (7, 4);
Cs. RegisterOutParameter (8, 4);
Cs. RegisterOutParameter (9, 10);
Cs. The execute ();
This. Record. SetAllItems (cs. Get int (7));
This. Record. SetPges (cs. Get int (8));
Rs=(ResultSet) cs. GetObject (9);
} the catch (Exception e) {
e.printStackTrace();
}
Return the rs;
}
Public Connection getCon ()
{
Return this. Con;
}
}
This is the exception information:
ORA - 06550: line 1, column 7:
PLS - 00201: must declare identifier 'GZAGRITEMP. DATAMANAGE'
ORA - 06550: line 1, column 7:
PL/SQL Statement ignored
This is a form of database storage process attributes:
CodePudding user response:
Gzagritemp. Datamanage. GetTableInfoThis is the name of your stored procedure?
The front is a user name, the middle one is the package name, last name is process?
CodePudding user response:
DATAMANAGE is a inclusions, you a JDBC connection user is GZAGRITEMPCodePudding user response:
CodePudding user response:
Direct call? If may not be authorized, permission to execute the stored procedureCodePudding user response: