쿼리 질문 드려요.
본문
sql_query("select * from aaa where ~~~~")
에서요.. while 문으로 리스트를 출력할때요....
필드명 mb_id와 stu_id 값이 서로 다른 것만 추출 하여 리스트로 출력하려면 어케 where절을 줘야 하는지요?
답변 1
mb_id 와 stu_id 가 같지 않은것
sql_query("select * from aaa where mb_id != stu_id ");
또는
sql_query("select * from aaa where mb_id <> stu_id ");
답변을 작성하시기 전에 로그인 해주세요.