It's simply , just one sql update table tab1 set status_id = 2
where add_months(12,trunc(create_time)) = trunc(sysdate)
where add_months(12,trunc(create_time)) = trunc(sysdate)
解决方案 »
- 在oracle soa里XMLParser类冲突
- 根据sqlserver中的多个表,组合成一个新表,并建立在oracle数据库中
- sqlldr问题
- opensolaris 安装oracle报错,大家帮帮忙了阿
- 不小心批量删了数据而且commit了......想恢复怎么办......
- 如何删除重复行
- 请教大哥们一个SQL....在线等.急急急!!!!!!
- 我建了一个视图,但现在查询起来速度特别慢,不知道是怎么回事,建立视图的代码如下,请大家帮忙看一下,多谢了!
- 在developer form builder中如何上传excel的数据(高分请教,不够再给!)
- 有关group by 的问题
- 小问题,请高手指教???
- oracle9i中数据表怎么不能显示中文啊。。。。。
as
begin
update table_name set status_id = 2 where to_char(add_months(p_date,-12),'yyyymmdd')=to_char(create_time,'yyyymmdd');
end;
/
begin
name_pro(sysdate);
end;
/