[MSSQL、PostgreSQL]列出資料表的欄位與資料型態


[PostgreSQL]
SELECT column_name, data_type from information_schema.columns
where table_name = 'test_table';

紅色字部分為資料表名稱


搜尋結果

UI設定畫面


[MSSQL]
SELECT COLUMN_NAME,DATA_TYPE,COLUMN_DEFAULT from information_schema.columns
where table_name = 'table_Name';

留言

這個網誌中的熱門文章

[Excel]將圖片放置於儲存格中

[電腦軟體]偵測遠端電腦的網路 Port是否開啟

[軟體]AUTOCAD關於開啟圖面時,字型找不到,而要手動指定成 chineset.shx 字型檔問題