当前位置:网站首页>SQL query statement parameters are written successfully
SQL query statement parameters are written successfully
2022-07-03 00:02:00 【CSDN Q & A】
public void test(@RequestBody Manager requestManager){ // This requestManager What's in it is (name=123,password=123) String sql = "select * from manager where name=? and password=?"; // I want it to be like this "select * from manager where name=123 and password=123"; But the parameters inside are obtained, not written }Take the answer :
int name=123;
int password=123;
String sql="select * from manager where name='"+name+"' and password='"+password+"';
Can you try it , I haven't tried , The middle is ' "+ +" '
边栏推荐
猜你喜欢

来自数砖大佬的 130页 PPT 深入介绍 Apache Spark 3.2 & 3.3 新功能

JSON数据传递参数

Request and response

Explain in detail the process of realizing Chinese text classification by CNN

Create an interactive experience of popular games, and learn about the real-time voice of paileyun unity

Writing of head and bottom components of non routing components

Flexible combination of applications is a false proposition that has existed for 40 years

35 pages dangerous chemicals safety management platform solution 2022 Edition

数据集-故障诊断:西储大学轴承的各项数据以及数据说明

Digital twin visualization solution digital twin visualization 3D platform
随机推荐
What experience is there only one test in the company? Listen to what they say
[live broadcast appointment] database obcp certification comprehensive upgrade open class
Open Source | Wenxin Big Model Ernie Tiny Lightweight Technology, Accurate and Fast, full Open Effect
Detailed explanation of 'viewpager' in compose | developer said · dtalk
Maybe you read a fake Tianlong eight
一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)
Leetcode relaxation question - day of the week
Mapper代理开发
Digital twin visualization solution digital twin visualization 3D platform
yolov5test. Py comment
JDBC教程
yolov5detect. Py comment
Practical series - free commercial video material library
Happy Lantern Festival, how many of these technical lantern riddles can you guess correctly?
Returns the size of the largest binary search subtree in a binary tree
Leetcode DP three step problem
【STL源码剖析】仿函数(待补充)
Define MySQL function to realize multi module call
基于OpenCV实现口罩识别
JDBC练习案例