- 博客(3)
- 收藏
- 关注
原创 Mysql基础02
select * from employee where dept in (select id from dept where name = '销售部' or name = '市场部');(case workaddress when '北京市' then '一线城市' when '上海市' then '一线城市' else '二线城市' end) as '工作地址'关系:一对一关系,多用于单表拆分,将一张表的基础字段放在一张表中,其他详情字段放在另一张表中,以提升操作效率。
2024-05-24 17:21:51
902
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人