트랜잭션의 이해와 JOIN
흐름제어-- 흐름제어 : case문select 컬럼1, 컬럼2, 컬럼3,case 컬럼 4 when [비교값1] then 결과값1 when [비교값2] then 결과값2 else 결과값3endfrom 테이블명;-- post 테이블에서 1번 user는 first author, 2번 user는 second authorselect id,title, contents,case author_id when 1 then 'first author' when 2 then 'second author' else 'others'endfrom post;-- author_id가 있으면 그대로 출력, 없으면 익명 출력select id,title, contents,case when author_id..