如何写一个PL/SQL 程序块以提升两个资格最老的"职员"为 "高级职员" 如何写一个PL/SQL 程序块以提升两个资格最老的"职员"为 "高级职员"? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table aset 职位='高级职员'where existselect 1from (select 职员编号 from table where 职位='职员'order by 入职日期) bwhere rownum<=2 and a.职员编号=b.职员编号) 上面的SQL不正确,应该这样写:update table aset 职位='高级职员'where 职员编号 in (select *from (select 职员编号from tablewhere 职位='职员'order by 入职日期)where rownum <=2 ) 怎么让Oracle数据库转换成SQLServer数据库 临时表的奇怪问题?希望各位ORACLE高手能出手相救!!! 时区问题 求一sql语句 数据复制问题 谢谢指点 为什么用ODBC访问ORACLE8.17会出现内存访问违例?在线等待,着急啊! 关于商用POS系统 PL/SQL存储过程问题 oracle Bundle Patch p13928776_10204 Windows修复教程 oracle存储过程 ODP.NET 查询 number 字段的问题
set 职位='高级职员'
where exist
select 1
from (
select 职员编号
from table
where 职位='职员'
order by 入职日期) b
where rownum<=2 and a.职员编号=b.职员编号)
set 职位='高级职员'
where 职员编号 in (
select *
from (
select 职员编号
from table
where 职位='职员'
order by 入职日期)
where rownum <=2 )