Oracle的數據字典常用操作(持續更新)

查看當前用戶下有哪些表(找表)

select table_name from user_tab_comments;

查看當前用戶下的表記錄數(查看記錄數)

select table_name, num_rows from user_tables where num_rows > 0 order by num_rows desc;

查看當前用戶下有哪些字段(根據字段名找表)

select table_name, column_name from user_tab_columns where instr(column_name, '列名關鍵字')>0;

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章