0
Follow
0
View

Seek solution, project running error, do not know what the problem is

cxfchw 注册会员
2023-02-27 17:47

If you have two parameters in sql, you need to set two parameters later, one name and one password.

czykings 注册会员
2023-02-27 17:47

sql error.
You should not write question marks in sql because this is a query condition.
"select * from s_admin where name="+name value +" and password="+password value
name value and password value from the Admin object parameter you passed

xiong_sir 注册会员
2023-02-27 17:47

call you this sql place how to write, the name and password directly concatenated into the sql inside, can be called directly, but there is the risk of sql injection, with the question mark, I'm going to pass in a name like password

img

About the Author

Question Info

Publish Time
2023-02-27 17:47
Update Time
2023-02-27 17:47