我如果想指定多个条件怎么写呢
这是啥
这是啥 2016-12-20 11:55:28
0
2
1356
这是啥
这是啥

reply all(2)
数据分析师

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.

刘奇

如果有两个条件的话,可以这么写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'


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!