oracle資料庫查詢所有表的欄位名稱

時間 2022-01-20 15:20:18

1樓:很多很多

1、mysql資料庫查詢帶有某個欄位的所有表名:

select * from information_schema.columns where column_name='column_name';

2、oracle資料庫查詢帶有某個欄位的所有表名:

select column_name,table_name from user_tab_columns where column_name='column_name';

3、sqlserver資料庫查詢帶有某個欄位的所有表名:

select [name] from [庫名].[dbo].sysobjects where id in (select id from [庫名].

[dbo].syscolumns where name = '欄位名')

4、然後這樣就完成了。

2樓:匿名使用者

想法非常好:

1、查有幾張表

select * from tab;

select * from cat;

select * from user_tables;

select table_name from user_tables;

2、乙個乙個的查

desc table1;

desc table2;

3、查包含欄位name的所有表

select table_name , column_name,data_type from user_tab_cols where column_name = 'name';

3樓:

這裡要用到資料字典了,其中用到的幾個表user_tables等。

上網查一下這些表,然後根據表結構可以把需要包含a欄位的表查出來。

4樓:匿名使用者

select a1 from all tables

查詢 oracle 資料庫中包含某一字段的所有表的表名

5樓:肥仙女

1、首先,開啟並登陸plsql。

2、然後點選左上角的新建,選擇sqlwindow。

3、此時,右邊區域就會彈出乙個sql視窗,我們可以在這裡輸入一些sql語句。

4、查詢多個欄位的sql語句為:

select欄位1,欄位2from表名。

5、然後點選左上的執行sql語句圖示。

6、耐心等待,在sql視窗下方就會展示你需要查閱的表中的對應欄位了。

6樓:匿名使用者

select table_name from dba_tab_columns where column_name='欄位名';

注意:欄位名需要大寫,否則你查不出來

7樓:阿懟哥

select table_name from user_tab_columns where column_name='欄位名稱'

oracle裡查出某個資料庫裡的所有表名

8樓:小丁創業

方法和詳細的操作步驟如下:

1、第一步,

mysql資料庫使用特定字段查詢所有表名,**見下圖,轉到下面的步驟。

2、第二步,執行完上面的操作之後,oracle資料庫使用特定字段查詢所有表名,**見下圖,轉到下面的步驟。

3、第三步,執行完上面的操作之後,sqlserver資料庫使用特定字段查詢所有表名,**見下圖,轉到下面的步驟。

4、第四步,執行完上面的操作之後,操作完成,見下圖。這樣,就解決了這個問題了。

9樓:匿名使用者

select * from all_tables where owner='scott' ;或者

select * from dba_tables where owner='scott';

資料字典檢視

表和列dba_tables、all_tables和user_tables顯示了有關資料庫表的一般資訊。

dba_tab_columns、all_tab_columns和user_tab_columns顯示了每個資料庫表的列的資訊。

注意:dba_objects、all_objects和user_objects顯示了模式物件的資訊,包括表。

10樓:匿名使用者

例如想要查出資料庫名為「abc」中的所有資料表,可以直接用這條語句查然後匯出在excel中檢視

select * from all_tab_comments t where t.owner = 'abc'

11樓:匿名使用者

命令列輸入show user回車之後

確認當前使用者是scott之後

select * from tab;查詢出所有的表及檢視select * from user_views;查詢出當前使用者下的所有檢視

就知道有哪些表了

oracle資料庫 查詢表名 查詢列名 查詢列中所有資料的語法分別是?

12樓:匿名使用者

1.查詢所有表的表名: select table_name from user_tables

解釋:從系統表user_tables中可以查詢出所有的表名字。

2.查詢表中的所有列名:desc table tablename(表名)。

解釋:通過desc (描述)tablename即可查詢出表中的所有字段。

3.查詢所有資料:select * from tablename t。

解釋:通過select 命令可以從tablename 中查詢出所有的表資料。

13樓:

select * from all_tables--查詢所有表;

select * from all_col_tab_column where table_name = 'system';--查詢列明

select admin from system

如何查詢oracle資料庫中所有表的所有欄位哪個

這個不可能使用簡單一個查詢語句來實現這個功能。因為你的這個需要基本都是比一定邏輯的查詢,實現起來有相當的難度。因為首先要確定有多少張表,每張表中有多少個欄位,然後才能實現某個欄位中的某條記錄包含你所需要的這個特定的值。這僅僅是一個簡單的思路,供參考。 佴寄風 寫一個儲存過程 將show tables...

oracle資料庫,oracle資料庫價格

oracle是一種適用於大型 中型和微型計算機的關聯式資料庫管理系統,它使用sql structured guery language 作為它的資料庫語言。sql主要包括資料定義 資料操縱 包括查詢 和資料控制等三方面功能。sql是一種非過程化程度很高的語言,使用者只需說明 幹什麼 而無需具體說明 怎麼...

求助 c查詢oracle資料庫中的表的字段內容並按列顯示在listbox中

九州樹 protected void button1 click object sender,eventargs e dr.close dbc.dispose conn.close string strselect select distinct 欄位名 from test 查詢字串 dataset...