当前位置:网站首页>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 ' "+ +" '
边栏推荐
- 95页智慧教育解决方案2022
- 基于FPGA的VGA协议实现
- [OJ] intersection of two arrays (set, hash mapping...)
- 数据集-故障诊断:西储大学轴承的各项数据以及数据说明
- How to set automatic reply for mailbox and enterprise mailbox?
- JVM foundation review
- Master the development of facial expression recognition based on deep learning (based on paddlepaddle)
- 1380. Lucky numbers in the matrix
- Three solutions to frequent sticking and no response of explorer in win11 system
- Use of cocospods
猜你喜欢

Hit the industry directly! The propeller launched the industry's first model selection tool

一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)

Interface difference test - diffy tool

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

Interpretation of new plug-ins | how to enhance authentication capability with forward auth

Request and response

Interface switching based on pyqt5 toolbar button -1

I've been interviewed. The starting salary is 16K

PR FAQ, what about PR preview video card?

Open Source | Wenxin Big Model Ernie Tiny Lightweight Technology, Accurate and Fast, full Open Effect
随机推荐
MySQL基础
Open source | Wenxin big model Ernie tiny lightweight technology, which is accurate and fast, and the effect is fully open
Brief introduction to common sense of Zhongtai
MySQL Foundation
Detailed explanation of 'viewpager' in compose | developer said · dtalk
Writing of head and bottom components of non routing components
Define MySQL function to realize multi module call
非路由组件之头部组件和底部组件书写
[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)
Fusion de la conversion et de la normalisation des lots
Go basic data type
QT 如何将数据导出成PDF文件(QPdfWriter 使用指南)
Hit the industry directly! The propeller launched the industry's first model selection tool
Analyze ad654: Marketing Analytics
接口差异测试——Diffy工具
Wechat applet basic learning (wxss)
RuntimeError: no valid convolution algorithms available in CuDNN
Interface automation coverage statistics - used by Jacobo
開源了 | 文心大模型ERNIE-Tiny輕量化技術,又准又快,效果全開
Interface switching based on pyqt5 toolbar button -1