Created
December 13, 2015 12:19
-
-
Save klaaz0r/63dee7684949b861906e to your computer and use it in GitHub Desktop.
Loading all the tables and columns from a oracle db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN | |
dbms_output.Put_line (USER | |
|| ' Tables in the database:'); | |
FOR t IN (SELECT table_name | |
FROM user_tables) LOOP | |
dbms_output.Put_line(t.table_name); | |
FOR i IN (SELECT column_name | |
FROM user_tab_cols | |
WHERE table_name = t.table_name) LOOP | |
dbms_output.Put_line(i.column_name); | |
END LOOP; | |
END LOOP; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment