php, sql语句,select * from biao2 where id=多个变量 代码怎么写?

2025-01-20 18:28:51
推荐回答(4个)
回答1:

select * from biao2 where id in ( 1,3,6,8 );
不能加引号

回答2:

select * from biao2 where id in ( 1,3,6,8 );

回答3:

select * from biao2 where `id` in ( 1,3,6,8 );

回答4:

select * from biao2 where id in($a)