SELECT * FROM topic LEFT JOIN author ON topic.author_id=author.id;
//topic 테이블과 join 테이블을 합친다. ON 조건 만족시키는 경우
SELECT id, title, description, created, name, profile FROM topic LEFT JOIN author ON topic.author_id = author.id; //오류
SELECT topic.id, title, description, created, name, profile FROM topic LEFT JOIN author ON topic.author_id = author.id; //정상 출력
->열에 id란 값이 2개 중복되므로 id->topic.id 로 열 구분을 해줘야함
SELECT topic.id AS topic_id, title, description, created, name, profile FROM topic LEFT JOIN author ON topic.author_id = author.id; //topic.id AS topic_id, AS를 이용해 이름 변경하여 출력 가능
테이블을 분리한다는 것은, 모든 테이블이 식별자 값만 행에 포함하고 있다면 JOIN을 통해 얼마든지 관계를 맺을 수 있다.