mysql> select name from test where name = any(select name from test where chengj
i > 80 and xueke='guangdong') and chengji >80 and xueke ='hunan';

 

 select name from test where chengji > 80 and xueke='guangdong';

 

CREATE TABLE `test` (
  `name` varchar(20) DEFAULT NULL,
  `xueke` varchar(20) DEFAULT NULL,
  `chengji` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

填入信息运行上面语句即可

相关文章:

  • 2021-09-26
  • 2022-01-11
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-07-21
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案