java.sql.SQLException: Parameter metadata not available for the given sta
来源:互联网 发布:linux查看log日志命令 编辑:程序博客网 时间:2024/06/15 14:56
问题:Java.sql.SQLException: Parameter metadata not available for the given statement
意思说:对于给定语句的参数元数据不可用(连接数据库时的URL需要加上元数据类型)
generateSimpleParameterMetadata=true (生成简单的参数元数据)
这里写上generateSimpleParameterMetadata=true 就解决了。
private static String url = "jdbc:mysql://localhost:3306/jdbc";//修改为private static String url = "jdbc:mysql://localhost:3306/jdbc?generateSimpleParameterMetadata=true";
因为mysql驱动默认generateSimpleParameterMetadata=false只有设置为true metadata类型会将每一个参数反射为Varchar类型
0 0
- java.sql.SQLException: Parameter metadata not available for the given sta
- SQL java.sql.SQLException: Parameter metadata not available for the given statement
- java.sql.SQLException: Parameter metadata not available for the given statement
- java.sql.SQLException: Parameter metadata not available for the given statement
- SQLException: Parameter metadata not available for the given statement
- SQLException:Parameter metadata not available for the given statement
- Parameter metadata not available for the given statement
- java.sql.SQLException: No value specified for parameter 16
- mybatis TypeHandler java.sql.SQLException: No value specified for parameter
- 解决java.sql.SQLException: Parameter number X is not an OUT parameter
- 解决java.sql.SQLException: Parameter number X is not an OUT parameter
- java.sql.SQLException: Parameter number 4 is not an OUT parameter
- java.sql.SQLException: Parameter number X is not an OUT parameter
- Mabatis报错 java.sql.SQLException: Parameter number 3 is not an OUT parameter 解决方法
- java.sql.SQLException: Userdoes not have access to metadata required to determine stored procedurepa
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- 基于TCP的RPC调用
- 素数筛法算法(C#)
- REST笔记(二):有CRUD与URI的服务就是RESTful Service吗?
- 显示当月日历-Java实现
- 洛谷 P1417 烹调方案
- java.sql.SQLException: Parameter metadata not available for the given sta
- 第1章 对象导论
- std::size_t在Linux下是8字节,在Windows下是4字节
- C++面试题--string类的实现
- Log4j的使用
- hibernate 检索策略
- C++生成dll以及引用dll
- hive中 sqoop详解
- 保护好自己的知识财产:一步步教你 iOS app 投诉维权