oracle 常用SQL

-- Drop columns -----------------------------------------------------------------------------------
alter table PARAM_T_THIRD_BANK_INFO drop column third_party_type;

-- Drop columns
alter table tpp_t_request drop
(
asyn_tag,
request_type,
third_party_type,
request_system
);

-- Add columns ------------------------------------------------------------------------------------

alter table PARAM_T_THIRD_BANK_INFO add third_party_type_2 NUMBER(2);

alter table TPP_T_REQUEST add
(
asyn_tag NUMBER(10) default 0 not null,
re_send_tag NUMBER(10) default 0 not null,
request_type NUMBER(10) default 0 not null,
third_party_type NUMBER(10) default 0 not null,
request_system NUMBER(10) default 0 not null
);

-- Add/modify columns -----------------------------------------------------------------------------
alter table PARAM_T_THIRD_BANK_INFO rename column third_party_type_ to THIRD_PARTY_TYPE;

原文地址:https://www.cnblogs.com/adolfmc/p/3145836.html