查詢資料庫表結構
1、打開Microsoft SQL Server 2012,選中需要查詢所有表的資料庫。
② mysql如何查看資料庫結構
1.在MySQL資料庫中通過show tables命令;查看資料庫中所有數據表
2.在MySQL資料庫中通過desc tablename;查看錶結構
③ oracle資料庫如何查詢表結構
在sql*plus中可以用DESC命令顯示表結構,例如:DESC EMP
在PL/SQL中,通過左邊的瀏覽器查看就可以了,例如下圖:
④ oracle 查看錶結構,表裡的數據
1、首先,我們打開PLSQL工具連接到需要進行數據比對的ORACLE資料庫。
⑤ mysql怎麼查看錶結構和注釋
MySQL 查看錶結構簡單命令。
一、簡單描述表結構,欄位類型desc tabl_name;
顯示表結構,欄位類型,主鍵,是否為空等屬性,但不顯示外鍵。
二、查詢表中列的注釋信息
select * from information_schema.columns where table_schema = 'db' #表所在資料庫
and table_name = 'tablename' ; #你要查的表
三、只查詢列名和注釋
select column_name,
column_comment from information_schema.columns where table_schema ='db' and
table_name = 'tablename' ;
四、#查看錶的注釋
select table_name,table_comment from information_schema.tables where table_schema = 'db' and table_name ='tablename'
ps:二~四是在元數據表中查看,我在實際操作中,常常不靈光,不知為什麼,有了解的大俠請留印。
五、查看錶生成的DDL show create table table_name;