81,092
社区成员
发帖
与我相关
我的任务
分享
1).4
2).(这个可以在Oracle下执行 mysql 应该执行不了)
begin for p in (select * from TestB)loop
update TsetA a set a.Grade=p.Grade where a.STU_ID=p.STU_ID;
end loop;
end;
3).update TestA a set SUT_ID=a.STU_ID||'_'||a.Grade where a.STU_NAME like '张%';
4).select * from TestA a order by a.Grade desc limit(21,20); (这个只适用mysql)