当前位置:网站首页>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 ' "+ +" '
边栏推荐
- JSON data transfer parameters
- How to maintain the brand influence of clothing enterprises
- Returns the root node of the largest binary search subtree in a binary tree
- 開源了 | 文心大模型ERNIE-Tiny輕量化技術,又准又快,效果全開
- Hit the industry directly! The propeller launched the industry's first model selection tool
- Matlab 信号处理【问答笔记-1】
- 35 pages dangerous chemicals safety management platform solution 2022 Edition
- Sourcetree details
- The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
- A single element in an ordered array -- Valentine's Day mental problems
猜你喜欢

Go basic data type

95 pages of smart education solutions 2022

The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north

What is the official website address of e-mail? Explanation of the login entry of the official website address of enterprise e-mail

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

CADD course learning (4) -- obtaining proteins without crystal structure (Swiss model)

How does win11 turn on visual control? Win11 method of turning on visual control

Solution: exceptiole 'xxxxx QRTZ_ Locks' doesn't exist and MySQL's my CNF file append lower_ case_ table_ Error message after names startup

How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base

Hit the industry directly! The propeller launched the industry's first model selection tool
随机推荐
Improvement of RTP receiving and sending PS stream tool (II)
cocospods 的使用
顶级 DevOps 工具链大盘点
leetcode 650. 2 Keys Keyboard 只有两个键的键盘(中等)
Bean load control
Happy Lantern Festival, how many of these technical lantern riddles can you guess correctly?
67页新型智慧城市整体规划建设方案(附下载)
Interface difference test - diffy tool
vim区间删行注释
返回二叉树中最大的二叉搜索子树的根节点
Interface switching based on pyqt5 toolbar button -2
【ML】李宏毅三:梯度下降&分类(高斯分布)
2022 latest and complete interview questions for software testing
Define MySQL function to realize multi module call
How to set automatic reply for mailbox and enterprise mailbox?
PHP get real IP
数据集-故障诊断:西储大学轴承的各项数据以及数据说明
Detailed explanation of 'viewpager' in compose | developer said · dtalk
Intranet penetration | teach you how to conduct intranet penetration hand in hand
一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)