본문 바로가기
MySql

MySQL과 다른

by 베이스 공부 2020. 10. 11.
반응형

어떻게 할 수 있습니까?

select * from theuser where userid=1233 and active != 1

올바른 MySQL 구문에서?

active NULL , 0 또는 1 일 수 있으며 필요한 것은 active 와 같습니다. NULL 또는 0 으로, 1 과 같지 않습니다.

 

해결 방법

 

select * from theuser where userid=1233 and (active is null or active != 1)

 

참조 페이지 https://stackoverflow.com/questions/5778182

 

 

반응형

댓글