当前位置:网站首页>L'index des paramètres d'erreur est sorti de la plage pour les requêtes floues (1 > Nombre de paramètres, qui est 0)
L'index des paramètres d'erreur est sorti de la plage pour les requêtes floues (1 > Nombre de paramètres, qui est 0)
2022-07-03 02:57:00 【Un iris rhamnoides CD】
Voici les informations d'erreur
select * from user where uid like '%?%'
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3288)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3272)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3314)
at com.mysql.jdbc.PreparedStatement.setInt(PreparedStatement.java:3258)
at com.mysql.jdbc.PreparedStatement.setObject(PreparedStatement.java:3533)
Erreurs possibles dans les assignations précompilées :
- Mauvaise position d'affectation spécifiée ,C'est - à - dire:
parameterIndexErreur de paramètre, La valeur de ce paramètre est de 1C'est parti.- Nombre insuffisant d'affectations
En promettantsqlL'instruction n'a pas d'erreur, Et sans erreur lors de l'utilisation d'une affectation précompilée :
…
Ça pourrait êtresql L'épissage des caractères utilisé dans l'instruction est incorrect ,C'est comme ça que ça se passe, L'exception décrite ci - dessus s'est produite au début avec des guillemets simples .
Solutions:
Changementsql L'épissage des déclarations , C'est une petite compilation.select * from user where uid like concat('%',?,'%')
边栏推荐
- Serious security vulnerabilities reported by moxa mxview network management software
- Error when installing MySQL in Linux: starting mysql The server quit without updating PID file ([FAILED]al/mysql/data/l.pid
- HTB-Devel
- Three. JS local environment setup
- 你真的懂继电器吗?
- Add automatic model generation function to hade
- Linear rectification function relu and its variants in deep learning activation function
- 用docker 連接mysql的過程
- [fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
- [translation] modern application load balancing with centralized control plane
猜你喜欢

Kubernetes family container housekeeper pod online Q & A?

xiaodi-笔记

Add MDF database file to SQL Server database, and the error is reported

random shuffle注意
![[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)](/img/6a/ae44ddb090ce6373f04a550a15f973.jpg)
[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)

Sqlserver row to column pivot

Do you really understand relays?

【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)

A2L file parsing based on CAN bus (2)

一文带你了解 ZigBee
随机推荐
I2C 子系统(四):I2C debug
[hcia]no.15 communication between VLANs
As a leader, how to control the code version and demand development when the epidemic comes| Community essay solicitation
HW-初始准备
[shutter] banner carousel component (shutter_wiper plug-in | swiper component)
Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
sql server 查询指定表的表结构
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
你真的懂继电器吗?
Sqlserver row to column pivot
Matlab tips (24) RBF, GRNN, PNN neural network
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
SQL statement
Why choose a frame? What frame to choose
Three.js本地环境搭建
Counter统计数量后,如何返回有序的key
Kubernetes cluster log and efk architecture log scheme
[translation] modern application load balancing with centralized control plane
Random Shuffle attention