Home > Database > Oracle > How to query all tables in oracle database

How to query all tables in oracle database

青灯夜游
Release: 2021-12-24 14:09:54
Original
28008 people have browsed it

Method: 1. Execute the "select * from all_tables where owner='VTATEST';" statement; 2. Execute the "select * from user_tables;" statement; 3. Execute "select * from tabs;".

How to query all tables in oracle database

The operating environment of this tutorial: Windows 7 system, Oracle 11g version, Dell G3 computer.

All tables in the Oracle query database

Method 1:

select * from all_tables where owner='VTATEST';
Copy after login

all_tables Check out Check the tables under all users, including the tables you log in with, and then add where to the user name you want to check. (Remember to capitalize the user name)

Method 2:

select * from user_tables;
Copy after login

The query is only for the tables under the user you are logged in, and tables under other users will not be displayed. .

Method three:

select * from tabs;
Copy after login

This is the same as the second class, but the writing is simpler, and it also checks the table under the user you are in.

Recommended tutorial: "Oracle Tutorial"

The above is the detailed content of How to query all tables in oracle database. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template