欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

MySql in的参数变量_MySQL

程序员文章站 2022-04-26 23:23:57
...
bitsCN.com
MySql in的参数变量 Mysql :Sql代码 select appid from mem_apps where appid in (?) 如果?=25,3 那么此语句的结果只有一条,形如下面的语句: select appid from mem_apps where appid in ('25,3') 要得到多条记录 ,可以采用下面的写法: select appid from mem_apps where INSTR(CONCAT(',',?,','),CONCAT(',',appid,','))>0 类似于 select appid from mem_apps where appid in ('25','3') bitsCN.com
相关标签: 25