oracle 修改表

--0.表重命名
alter table GH_ZD_SCJX rename to GH_ZD_SCJX_jx;
--1.
create table GH_ZD_SCJX as SELECT * FROM GH_ZD_SCJX_jx gz WHERE gz.id='1651'
--2
SELECT count(*) FROM GH_ZD_SCJX
--3
truncate table GH_ZD_SCJX
--4
insert into GH_ZD_SCJX SELECT * FROM GH_ZD_SCJX_jx
--5
truncate table GH_ZD_SCJX_jx
--6
drop table GH_ZD_SCJX_jx

posted @ 2017-11-13 12:00  wumengjuan  阅读(143)  评论(0编辑  收藏  举报