개발/sql
[sql] case vs if
방푸린
2022. 5. 2. 17:20
반응형
CASE, IF Function(IF 함수), IF Statement(IF 문)의 차이
- case는 스위치문 같고
- if는 조건이 두개인 case와 같다.
- if statement는 프로시져에나 사용되는 완전 다른 이야기.
https://stackoverflow.com/questions/30047983/mysql-case-vs-if-statement-vs-if-function
MySQL - CASE vs IF Statement vs IF function
Who can please explain the difference between CASE-statement, IF-statement and IF-function? What is the difference in terms of usage and "how it works"?
stackoverflow.com
728x90
반응형