MySQL设置了where条件

MySQL设置了where条件,mysql,sql-update,Mysql,Sql Update,请告诉我如何应用此查询 我想在备注中设置第一位,其中studentsgpa最高 我尝试了以下方法: update mcs1 set remarks = "First position" where sgpa = top 1 order by sgpa asc 如果我明白你的问题: UPDATE mcs1 SET remarks = 'First position' ORDER BY sgpa DESC LIMIT 1 为最高的sgpa

请告诉我如何应用此查询

我想在
备注
中设置
第一位
,其中student
sgpa
最高

我尝试了以下方法:

update mcs1 
set remarks = "First position" 
where sgpa = top 1 
order by sgpa asc

如果我明白你的问题:

UPDATE mcs1
SET remarks = 'First position'
ORDER BY sgpa DESC
LIMIT 1
为最高的
sgpa