有一个Student表

内容如下

Id    Name    Age
1    王子博    27
2    王子硕    25
3    王家玺    7
4    王家拓    2

我想查找 比 王家玺 年龄大的人

语句1:Select s1.Id,s1.Name,s1.Age From Student s1,Student s2

Where s2.Name='王家玺'  And s1.Age>s2.Age

语句2:SELECT s1.Id,s1.Name,s1.Age

from  Student s1 inner join Student s2  on  s1.Age >s2.Age Where  s2.Name='王家玺'

挺简单的一个问题,我现在才捯饬明白。。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2022-01-16
  • 2021-11-03
  • 2021-11-20
  • 2022-01-08
  • 2022-12-23
  • 2021-08-31
  • 2021-05-28
相关资源
相似解决方案