Home > Database > Oracle > body text

How to query all user tables in oracle

WBOY
Release: 2022-04-07 12:03:08
Original
24393 people have browsed it

In Oracle, you can use the select statement to query all user tables. This statement is used to select data from the database. You can use "all_tab_comments" to represent all user tables and views. The syntax is "select * from all_tab_comments. ".

How to query all user tables in oracle

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

How oracle queries all user tables

The SELECT statement is used to select data from the database.

The results are stored in a result table, called a result set.

SQL SELECT syntax

SELECT column_name,column_name
FROM table_name;
Copy after login

and

SELECT * FROM table_name;
Copy after login

query the tables and views of all users, the syntax is as follows:

select * from all_tab_comments
Copy after login

Expand knowledge:

Query this user’s tables, views, etc.

select * from user_tab_comments
Copy after login

How to query all user tables in oracle

##Recommended tutorial: "

Oracle Video Tutorial

The above is the detailed content of How to query all user tables in oracle. 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