3
조건이 좋을 때 여러 변수를 설정하고자하는 상황이 있습니다. MySQL에서 IF 내부에 여러 사용자 변수를 설정하는 방법
IF(expr1, @reading:=0 and @prevdate:[email protected], @reading:[email protected])
당신은 내가 @reading:=0 and @prevdate:[email protected]
을 설정할 참조로
true
또는 false
노드 내에 어떻게 여러 사용자 변수를 설정할 수 있습니까?
'if' 대신'case'를 시도하십시오. – diEcho