摘要: create table table_name as select * from table_name1; ---复制表,包括数据,不会创建索引 create table table_name as select * from table_name1 where 1=2; ---复制表,不包括数据 insert into table_name select * from table_nam... 阅读全文
posted @ 2017-05-19 10:06 非非是 阅读(515) 评论(0) 推荐(0) 编辑
摘要: COMMENT ON table GC_G_DOC84 IS '行政处罚撤销决定书'; COMMENT ON column GC_G_DOC84.CASEID IS '案件记录ID'; 阅读全文
posted @ 2017-05-19 09:37 非非是 阅读(376) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE (表名) ADD CONSTRAINT (索引名);ALTER TABLE (表名) DROP CONSTRAINT (索引名); ALTER TABLE (表名) ADD (列名 数据类型); ALTER TABLE (表名) MODIFY (列名 数据类型); ALTER 阅读全文
posted @ 2017-05-19 09:35 非非是 阅读(485) 评论(0) 推荐(0) 编辑