$sql = " select it_id, it_name, ct_send_cost, it_sc_type, ct_status
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and ct_status = '배송' ";
여기서 ct_status가 '배송'이거나 '완료'인걸 불러와야 하는데요
어떻게 해야 불러올 수 있나요?
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
and ( ct_status = '배송' or ct_status = '완료')
or로 구분하고 ()로 묶어서 where문 작성하시면됩니다
답변에 대한 댓글 1개
2020-10-14 (수) 10:27:49
2020-10-14 (수) 11:10:23
and ct_status in ('배송', '완료')
답변을 작성하려면 로그인이 필요합니다.
항상 도움주셔서 너무너무 감사해요 ㅎㅎ