select * from student where id in (1,2,3,4,5,6,8.....)
find_in_set 表示字段包含条件:
select * from article where find_in_set('PHP', tags);//查找标签为PHP的文章
like 表示字段匹配某个模式:
select * from article where title like '%PHP%'; //查找标题中包含PHP关键字的文章
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All commentsSpeak rationally on civilized internet, please comply with News Comment Service Agreement