Oracle-数据库脚本总结

Oracle-数据脚本总结

–修改oracle数据库密码 js 用户口令 hanxx 更改的用户密码

--js -> 用户名   hanxx -> 密码
alter user js identified by hanxx;

–创建表

--删除表 
drop table cnf_dict_bak0718;

--全表备份 (用于删除表前-备份)
create table cnf_dict_bak0718 as select * from cnf_dict; 

--jiesuan
--判断表是否存在,如果存在则删除
declare 
      num number; 
begin 
      select count(1) into num from user_tables where TABLE_NAME = 'EDI_BOOKING_HEADER';
      if   num=1   then 
          execute immediate 'drop table EDI_BOOKING_HEADER'; 
      end   if; 
end; 
/ 

猜你喜欢

转载自blog.csdn.net/qq_39669916/article/details/81293697