84669인 학습
152542인 학습
20005인 학습
5487인 학습
7821인 학습
359900인 학습
3350인 학습
180660인 학습
48569인 학습
18603인 학습
40936인 학습
1549인 학습
1183인 학습
32909인 학습
select id,title,content from myarticle where id IN(219,220,222,225) and content like '明明' or title like '明明';
用 where id IN(219,220,222,225),给我返回别的 267的文章怎么让后面的like 根据 IN的结果做模糊?谢谢了
闭关修行中......
select id,title,content from myarticle where id IN(219,220,222,225) and (content like '明明' or title like '明明');
and的优先级比or高,所以A and B or C实际是(A and B) or C,你要用括号来改变优先级A and (B or C)才行。
A and B or C
(A and B) or C
A and (B or C)
and的优先级比or高,所以
A and B or C
实际是(A and B) or C
,你要用括号来改变优先级A and (B or C)
才行。