【发布时间】:2014-07-15 04:34:13
【问题描述】:
我在jdbc中写了一些调用mysql过程的代码
Driver requires declaration of procedure to either contain a '\nbegin' or '\n' to follow argument declaration, or SELECT privilege on mysql.proc to parse column types.
当我调用下面的过程时出现上述错误是代码:
CallableStatement proc;
if (JDBCConnection.connection != null) {
Connection con = JDBCConnection.getConnection();
System.out.println("in DAOimpl "+username);
proc= con.prepareCall("{call getChildList(?) }");
System.out.println("prosedure"+proc);
proc.setString(1,username);
System.out.println(proc);
ResultSet rs=proc.executeQuery();
}
请给我一个对我有帮助的解决方案。
【问题讨论】:
-
你觉得不清楚的错误信息是怎么回事?
标签: java mysql stored-procedures jdbc