“当没有用 EXISTS 引入子查询时,在选择列表中只能指定一个表达式.”这句话时什么意思?

2025年03月25日 19:44
有1个网友回答
网友(1):

你后面不能用* 号的,因为studentid只有一个,in里面的字段也只能有一个,这样就可以了

select * from grade
update grade 
set grade=grade+5
where studentid in(select studentid from student
where studentid like'%[3,6]')