1、判断表是否存在
select count(*) AS v_cnt from user_tables where table_name='table'
2、取得数据表里的所有字段
select
table_name,column_name from all_tab_columns where table_name = 'table'
3、创建表
create table new_table_test_zhq(
ID VARCHAR2(32) NOT NULL primary key
-- ,字段2
);
4、--增加列
alter table new_table_test_zhq add address varchar2(32);
5、--删除列
alter table new_table_test_zhq drop column address;