sql语句错误,不能先select出同一表中的某些值,再update这个表
updateattractionssetattractions_name=(selectmax(attractions_sort)+1fromattractions)wh...
update attractions set attractions_name = (select max(attractions_sort)+1 from attractions ) where attractions_id ='123';
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询