db2 查看所有表和表結構語句

select name from sysibm.systables where type='T' and creator='DB2ADMIN' type:數據庫表用T表示;數據庫視圖用V表示 creator:數據庫對象的創建者


 select   tabname   from   syscat.tables   where   tabschema   =   current   schema   ;//   獲取當前模式下面的所有用戶表


select * from sysibm.columns where table_schema = test and table_name = test;  //查看錶結構
發佈了24 篇原創文章 · 獲贊 9 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章