채택완료

다중조건

2019-03-11 (월) 21:46:01 1,728

bo_table이 test1,test2,test3 있으면

$sql = " select * from xxxxx where bo_table = 'test1,test2,test3'

조건에 test1,test2,test3 썼는데 3개 전부 나오질 않네요..

조건에 게시판명을 , 로 구분해서 전부 가져올순 없나요?.. 

|

답변 1개

채택된 답변
+20 포인트
2019-03-11 (월) 21:52:43

where bo_table = 'test1' or bo_table =' test2 or bo_table = 'test3'

로 해보세요

답변을 작성하려면 로그인이 필요합니다.