oracle 查詢表中和資料庫中資訊

2021-06-06 00:14:38 字數 457 閱讀 1155

1.查詢oracle資料庫中表

select * from user_tables ;

2.查詢表中資訊

select utc.table_name,

utc.column_name,

utc.data_type,

utc.data_length,

utc.data_precision,

utc.data_scale,

utc.nullable,

utc.data_default,

ucc.comments

from user_tab_columns utc, user_col_comments ucc

where

utc.table_name = ucc.table_name

and utc.column_name = ucc.column_name

SQL Server查詢資料庫表和資料庫字段

在sql server中查詢資料庫表和字段的方式可以有三種 方法一 查詢所有表 select from sys.tables 查詢所有列 select from sys.columns 查詢所有擴充套件屬性,我們在設計資料庫表和字段時寫的中文備註等資訊會儲存在這裡 select from sys.e...

MySQL查詢資料庫表和資料庫字段

information schema資訊資料庫 mysql中存在乙個自帶的資料庫information schema,其中儲存著關於mysql伺服器所維護的所有其他資料庫的資訊。查詢test database中的檢視 select from information schema.tables whe...

JBoss中和資料庫的連線

這裡所說的資料庫連線是在jboss中通過xml檔案配置資料來源,在程式中通過名字來訪問資料庫。從jboss3.2.3之後的資料庫連線配置比較簡單,關於配置檔案的書寫在jboss中針對不同的資料庫有相應的例子,配置檔案的例子在目錄jboss home docs examples jca下,如對mysq...