表关联关系与关联查询

E-R模型:

 

表关联查询:如果多个表存在关联关系,可以多个表在一起进行查询操作。

  多表联合查询语法:select 字段1,字段2  from  表1,表2 ,表3......   where [条件]

  例如: select *  from dept,person where dept.id=person.dept_id;

 

posted @ 2021-04-24 11:55  苍山如海,残阳如血  阅读(264)  评论(0)    收藏  举报