多个表一起查询 可以使用连接查询,也可以 利用where  and  实现 

多表联查  

select 字段1,2,3 from 表A,B,C,D where 条件1 and 2 and 3..

 Select S#,Sname from (select Student.S#,Student.Sname,score ,(select score from SC SC_2 where SC_2.S#=Student.S# and SC_2.C#='002') score2
  from Student,SC where Student.S#=SC.S# and C#='001') S_2 where score2 <score;

 

相关文章:

  • 2022-02-09
  • 2021-09-18
  • 2021-12-05
猜你喜欢
  • 2021-11-20
  • 2022-02-17
  • 2021-12-05
  • 2022-01-23
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案