: 키를 사용해 여러 개의 테이블을 이어 붙여 줄 수 있음
ex)
select *
from Track t
join Genre g on t.GenreId = g.GenreId;
user:
**CREATE TABLE USER(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) NOT NULL,
gender VARCHAR(30),
city VARCHAR(30)
)DEFAULT CHARSET=utf8**
INSERT INTO user(NAME,gender,city) VALUE ('홍길동','남','서울');
INSERT INTO user(NAME,gender,city) VALUE ('최희연','여','서울');
user2:
**CREATE TABLE USER2(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) NOT NULL,
gender VARCHAR(30),
phoneNumber VARCHAR(30)
)DEFAULT CHARSET=utf8**
INSERT INTO user2(NAME,gender,phoneNumber) VALUE ('홍길동','남','01051209578');