数据分析师2017-09-30 23:04:51
How should I write if I want to specify multiple conditions-PHP Chinese website Q&A-What should I write if I want to specify multiple conditions-PHP Chinese website Q&A
Take a look and learn.
怪我咯2016-12-20 13:19:56
如果有两个条件的话,可以这么写SELECT* from tb where a字段=‘x’ or a字段=‘y’,或者SELECT* from tb where a字段=‘x’ anda字段=‘y’;
当然你如果条件多了,还可以加() 如:
SELECT* from tb where (a字段='x' or a字段='y') and b字段='zzz'