Oracle table select
ORACLE匯出資料庫所有表結構為EXCEL檔案(只需要把資料庫名改為對應的資料庫即可,需要單個的話,在Where中加入atc.table_name為單表即可):
SELECT DISTINCT
atc.table_name AS "表名"
,atcom.comments AS "表註釋"
,atc.column_id AS "欄位序號"
,atc.column_name AS "欄位名"
,atc.data_type AS "欄位型別"
,atc.data_scale AS "欄位精度"
,atc.data_length AS "欄位長度"
,acc.comments AS "欄位註釋"
,allt.num_rows as "表資料量"
FROM
all_tab_columns atc
INNER join all_col_comments acc ON atc.table_name = acc.table_name AND atc.owner = acc.owner AND atc.column_name = acc.column_name
INNER join all_tab_comments atcom ON atc.table_name = atcom.table_name AND atcom.owner = acc.owner AND atcom.table_type = 'TABLE'
INNER join all_tables allt on atc.table_name = allt.table_name AND atc.owner = allt.owner
WHERE
atc.owner = '資料庫名'
ORDER BY
atc.table_name,
atc.column_id;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-2896840/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle:TABLE MONITORINGOracle
- oracle cache table(轉)Oracle
- Oracle Pipelined Table(轉)Oracle
- Bootstrap select2 ,table, 清空表單formbootORM
- 關於 mysql 中的 select * from table_a,table_b 的問題MySql
- Oracle Pipelined Table Functions(轉)OracleFunction
- ORACLE SELECT INTO NO_DATA_FOUND問題Oracle
- Laravel-admin 中 table,select 控制元件額外需求Laravel控制元件
- ERROR 1786 (HY000): Statement violates GTID consistency: CREATE TABLE ... SELECTError
- ORACLE _small_table_threshold與eventOracle
- Oracle cluster table(1)_概念介紹Oracle
- Oracle Table建立引數說明Oracle
- Analyze table對Oracle效能的提升Oracle
- create table 使用select查詢語句建立表的方法分享
- 【SQL】14 UNION 操作符、SELECT INTO 語句、INSERT INTO SELECT 語句、CREATE DATABASE 語句、CREATE TABLE 語句SQLDatabase
- oracle truncate table recover(oracle 如何拯救誤操作truncate的表)Oracle
- use azure data studio to create external table for oracleOracle
- 【TABLE】Oracle表資訊收集指令碼Oracle指令碼
- 深入解析 oracle drop table內部原理Oracle
- 如何讓oracle的select強制走索引Oracle索引
- Oracle中select for update ...一些區別Oracle
- 14_深入解析Oracle table cluster結構Oracle
- Oracle 19c Concepts(02):Tables and Table ClustersOracle
- 筆記:Oracle - sys_guid()直接select亂碼筆記OracleGUI
- oracle 19c 無法create table解決Oracle
- 【TABLE】Oracle監控異常的表設計Oracle
- 有關oracle external table的一點測試。Oracle
- Oracle select 語句字串拼接小例項-quote使用Oracle字串
- Oracle:select 或 inactive 會話語句產生鎖?Oracle會話
- iview Table元件使用render新增Select下拉框並進行雙向繫結View元件
- oracle表空間不足:ORA-01653: unable to extend tableOracle
- Oracle中獲取TABLE的DDL語句的方法Oracle
- Oracle OCP(01):使用SQL SELECT語句檢索資料OracleSQL
- select 下拉框用 Select select = new Select (element) 方法失敗
- 【TUNE_ORACLE】查出所有有“select *”語句的SQL參考OracleSQL
- oracle drop table purge無備份bbed恢復(3/3)Oracle
- oracle drop table purge無備份bbed恢復(1/3)Oracle
- oracle drop table purge無備份bbed恢復(2/3)Oracle