sql中的where子句字段=?是什么意思

比如
select * from A where name=?
这?是啥意思

?用来给参数占位,你可以把?当作一个变量,需要提前赋值给出。具体你可以搜索数据库where语句中的问号

sql预编译语句中代表将来运行时候需要传入的参数

? 是给条件值占位置的, 比如: select *from s where name='李四' ,这时候 李四 就是? , 占位符是为了防止sql注入风险 赞同请采纳