求关于MYSQL的一句简单语句...
求关于MYSQL的一句简单语句...
update tGroup set cID=iAutoID where iAutoID =(select max(iAutoID) from tGroup) ;
以上本来是MSSQL里的正确语句,
在MYSQL中运行报错?请问应该怎么写?
------解决方案--------------------update tGroup set cID=iAutoID where iAutoID in (select idt from (select max(iAutoID) as idt from tGroup) as t)