摘要: SELECT A.TABLE_SCHEMA as 用户名, A.TABLE_NAME as 表名, B.TABLE_COMMENT as 表中文名, B.TABLE_ROWS AS 记录数, A.COLUMN_NAME as 字段名, A.COLUMN_COMMENT as 字段注释, A.COLU 阅读全文
posted @ 2019-09-11 17:54 酸奶加绿茶 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 前提:开启回收站 查看回收站状态 奇怪,为什么回收站是开的,删除时不进回收站呢?系统表空间是不放入回收站的 scott用户就没有问题: 回收站开启的方法: alter session set recyclebin=off; alter system set recyclebin=off DEFERR 阅读全文
posted @ 2019-09-11 16:31 酸奶加绿茶 阅读(332) 评论(0) 推荐(0) 编辑
摘要: user_indexes 字典视图包含了索引名和唯一性, user_ind_columns视图包含了索引名、表名、以及列名 dba_indexes dba_ind_columns 同理 基于函数的索引 阅读全文
posted @ 2019-09-11 11:27 酸奶加绿茶 阅读(817) 评论(0) 推荐(1) 编辑
摘要: Sequence: Define a Sequence to generate sequential numbers automatically example:可以在 update、select、insert语句中使用 阅读全文
posted @ 2019-09-11 11:00 酸奶加绿茶 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 使用 set unused 选项标记不再使用的列 使用 drop unsused columns 丢弃标记为unused的列 alter table tabName set unused column colName; 或alter table tabName set unused (colName 阅读全文
posted @ 2019-09-11 10:09 酸奶加绿茶 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Put a table into read-only mode,which prevents DDL or DML changes during table maintenance Put the table back into read/write mode alter table XX READ 阅读全文
posted @ 2019-09-11 09:58 酸奶加绿茶 阅读(247) 评论(0) 推荐(0) 编辑