left join的学习,“ left join 表名 on 条件 ”
select 字段名 from 表名(自命名) left join 表名(自命名) on 条件
例子:
select a.Menuid,a.Name,a.Price,c.RestaurantName,b.FT_name from t_menu a LEFT JOIN t_foodtype b ON a.FT_typeid = b.FT_typeid LEFT JOIN t_restaurant c on a.Restid = c.Restid;"