如何修改使用PL/SQL查询出来的数据? 在ORCLA数据库中,用PL/SQL查询出了表数据,需要修改表中的一个数据,是个时间,‘yyyy-mm-dd 24h-mm-ss’,使用UPDATE 该如何的格式,如果不用UPDATE命令,又有什么办法?请指教! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update tablename set fldtime=to_date('2010-02-14 14:00:00','YYYY-MM-DD H24:MI:SS') where ..... select * from tablename where fieldname = '¶meter' for update 没太懂楼主的意思:1、select * from tablename where ....for update手动修改之2、update tablename set colname=to_char(sydate,'YYYY-MM-DD HH12:MI:SS' ) where ...commit; create table timetest( timetest date);insert into timetest select to_date('2010-01-01 10:11:12','yyyy-mm-dd hh24:mi:ss') from dual; nsert into table select to_date('2010-02-21 9:16:12','yyyy-mm-dd hh24:mi:ss') from dual; insert into table select to_date('2010-02-21 9:16:12','yyyy-mm-dd hh24:mi:ss') from dual; update tablename set ... where colname=to_char(sydate,'YYYY-MM-DD HH12:MI:SS' ) 在查询语句的最后面加上for update,查询出结果后点击查询列表上小工具栏上的锁图标按钮,然后就可以直接在列表里修改数据,修改完后点击打勾图标按钮保存修改,最后按工具栏的提交按钮(或者在菜单Session->Commit) 字符串替换求解 sql查询问题 我用exp导出的数据,用imp导入不进去 oracle中的完全恢复和不完全恢复有什么区别 求SQL语句 oracle goldengate目标数据库提取不到数据 我Oracle初学者,介绍本教程呀! 大家看看这个触发器错在哪儿了 excel导入数据库,好像不简单..... 某一字符型字段如PerMemo,能不能直接做PerMemo=PerMemo || 'a'这样的连接字符串操作? 删除oracle中一表名为<RD-SFFPK3>的表 oracle如何连接AS400
set fldtime=to_date('2010-02-14 14:00:00','YYYY-MM-DD H24:MI:SS')
where .....
where fieldname = '¶meter'
for update
手动修改之
2、update tablename set colname=to_char(sydate,'YYYY-MM-DD HH12:MI:SS' ) where ...commit;
create table timetest
(
timetest date
);insert into timetest select to_date('2010-01-01 10:11:12','yyyy-mm-dd hh24:mi:ss') from dual;
select to_date('2010-02-21 9:16:12','yyyy-mm-dd hh24:mi:ss') from dual;
select to_date('2010-02-21 9:16:12','yyyy-mm-dd hh24:mi:ss') from dual;