平常我们写sql语句使用in函数基本上都是一个字段in一个字段
例如:
select * from Student where teacherId in (select id from Teacher)
其实也可以in多个字段,但是要一一对应
例如:
select * from Student where (id,Salary) in (select id,Max(Salary) from Student group by subject )
平常我们写sql语句使用in函数基本上都是一个字段in一个字段
例如:
select * from Student where teacherId in (select id from Teacher)
其实也可以in多个字段,但是要一一对应
例如:
select * from Student where (id,Salary) in (select id,Max(Salary) from Student group by subject )
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M