조회
select * from customer;
✅
업데이트
update menu set name = "이베리코 양념모둠"
where id = 4;
✅
추가
insert into food_category (name) values
'간편식'
❌
insert into food_category (name) values
('간편식');
조회
하기select email, reg_num from seller;
✅
select name, price from menu order by price
이름만 조회하는것인가? 가격도 같이 조회하는건가?
❌
select name from menu where price < 10000 order by price;
select s.name, sl.owner_name from store s
inner join seller sl on sl.id = s.seller_id
✅
조회
(left join
사용)select c.name, m.name from menu_like as ml
left join customer as c on c.id = ml.customer_id
left join menu as m on m.id = ml.menu_id
✅