当前位置:网站首页>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('%',?,'%')
边栏推荐
- How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
- 二维格式数组格式索引下标连续问题导致 返回json 格式问题
- [fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
- TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- Distributed transaction
- open file in 'w' mode: IOError: [Errno 2] No such file or directory
- HW-初始准备
- Update and return document in mongodb - update and return document in mongodb
- Variable declarations following if statements
猜你喜欢
![[translation] modern application load balancing with centralized control plane](/img/b0/22e9bf098d580b2af67255ddcdc0d5.jpg)
[translation] modern application load balancing with centralized control plane
![[principles of multithreading and high concurrency: 1_cpu multi-level cache model]](/img/c7/6b5ab4ff7379bfccff7cdbb358ff8f.jpg)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]

HTB-Devel

分布式事务

What does "where 1=1" mean

超好用的日志库 logzero

Matlab tips (24) RBF, GRNN, PNN neural network

一文带你了解 ZigBee

Kubernetes family container housekeeper pod online Q & A?

Segmentation fault occurs during VFORK execution
随机推荐
What is the way out for children from poor families?
Interview stereotyped version
[fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
MUX VLAN Foundation
左值右指解释的比较好的
一文带你了解 ZigBee
I2C subsystem (III): I2C driver
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
[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)
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Deep reinforcement learning for intelligent transportation systems: a survey paper reading notes
C language beginner level - pointer explanation - paoding jieniu chapter
SQL statement
sql server数据库添加 mdf数据库文件,遇到的报错
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
Segmentation fault occurs during VFORK execution
Choose it when you decide
sql server 查询指定表的表结构
Hcip137-147 title + analysis