关于数据库操作整理的一些经验

来源:互联网 发布:如何查看linux密码 编辑:程序博客网 时间:2024/05/19 17:50

数据更新后,找回原数据方法

oracle短时间内丢失数据,找数据的方法,顺便建立新表。


create table "SysDictionary"
as
select * from TABLENAME_BAK as of timestamp to_timestamp('2011-11-11 10:00:00', 'yyyy-mm-dd hh24:mi:ss');

要是sql server,丢失数据找到方法比较麻烦使用的是Log+Explorer的工具。具体没试过。

oracle改变表名,列名的方法:

rename "table_name" to table_name

更改表列名的命令

alter table xnms_autoaction rename column methodid to uciid;

 

原创粉丝点击