sql 조건문

sql 조건문

QA

sql 조건문

답변 1

본문

where a.od_id = b.od_id and b.mb_id = '{$member['mb_id']} and ct_status = 'a' ";

 

저기서 ct_status가 a이거나 b이거나 c이거나면 어떻게 써야 하나요?

 

ct_status = 'a' or ct_status = 'b' or ct_status = 'c'

 

이렇게 썼더니 오류나더라구요

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 461
© SIRSOFT
현재 페이지 제일 처음으로