mysql存储过程中 有out 参数 varchar(50)这样的但是我在java里 cs.registerOutParameter(3, Types.VARCHAR);说我类型不对 怎么回事

解决方案 »

  1.   

    org.springframework.jdbc.BadSqlGrammarException: CallableStatementCallback; bad SQL grammar [{call PRC_IMPORT_DWRES_INF_ELEMENT(?,?,?,?)}]; nested exception is com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`out_success`,@com_mysql_jdbc_outparam_`out_message`)' at line 1