当前位置:网站首页>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 ' "+ +" '
边栏推荐
- leetcode 650. 2 Keys Keyboard 只有两个键的键盘(中等)
- 95页智慧教育解决方案2022
- A single element in an ordered array -- Valentine's Day mental problems
- [shutter] shutter photo wall (center component | wrap component | clickrrect component | stack component | positioned component | button combination component)
- The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
- Brief introduction to common sense of Zhongtai
- Solution: exceptiole 'xxxxx QRTZ_ Locks' doesn't exist and MySQL's my CNF file append lower_ case_ table_ Error message after names startup
- Leetcode relaxation question - day of the week
- Where is the win11 microphone test? Win11 method of testing microphone
- Where is the win11 automatic shutdown setting? Two methods of setting automatic shutdown in win11
猜你喜欢

MySQL Foundation

Speech recognition Series 1: speech recognition overview

Use redis to realize self increment serial number

基于OpenCV实现口罩识别

QT 如何将数据导出成PDF文件(QPdfWriter 使用指南)

How much do you know about synchronized?

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

Convolution和Batch normalization的融合

Interface switching based on pyqt5 toolbar button -1
![Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]](/img/d8/d22cbbaccb1594ee46aca098c41002.png)
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
随机推荐
程序分析与优化 - 9 附录 XLA的缓冲区指派
[ml] Li Hongyi III: gradient descent & Classification (Gaussian distribution)
Go basic data type
Writing of head and bottom components of non routing components
Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
Mapper代理开发
Bean加载控制
Digital twin visualization solution digital twin visualization 3D platform
非路由组件之头部组件和底部组件书写
Judge whether the binary tree is full binary tree
Chinatelecom has maintained a strong momentum in the mobile phone user market, but China Mobile has opened a new track
ArrayList analysis 2: pits in ITR, listiterator, and sublist
Convolution和Batch normalization的融合
基于FPGA的VGA协议实现
基于OpenCV实现口罩识别
Unique line of "Gelu"
"A good programmer is worth five ordinary programmers!"
List of major chip Enterprises
95页智慧教育解决方案2022
How to maintain the brand influence of clothing enterprises