Oracle subquery, create and manage tables, and oracle query Creation

Source: Internet
Author: User

Oracle subquery, create and manage tables, and oracle query Creation
SummarySubquery:

Single Row subquery: returns a single row
Use Single Row comparison Operators
Multi-row subquery: multi-row subquery returns multiple rows
Multiline operators:
IN, ANY, ALL
If the query result of the subquery is null, no rows are returned.

Create and manage tables: Query Data Dictionary:

View a user-defined table:

SELECT table_nameFROM user_tables;

View user-defined data objects:

SELECT distinct object_typeFROM user_objects;

View user-defined tables, views, synonyms, and Sequences

SELECT * FROM user_catalog;

CREATE table
Two methods:

ALTER table

Rename a table:
RENAME dept TO detail_dept;
Table renamed.

Delete table:
Drop table dept80;
Table dropped.

Clear table:
Truncate table detail_dept;
Table truncated.

These DDL languages cannot be rolled back and are automatically submitted.
You need to practice more to become familiar and proficient.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.