Basic Oracle SQL knowledge

Source: Internet
Author: User

I. DataBase

Save data to present data in the form of tables

Ii. SQL

Structured query language (SQL) is an object used to operate relational databases.

DDL (data definition language) is used to create or Delete tables and modify table constraints.

Create table, alter table, and drop table add, delete, and modify table structures.

DML (Data manipulation language), insert records into the table, modify records

Insert, update, delete

Transaction, transaction control language, composed of DML statements, commit;, rollback, savepoint

Select query statement

Dcl Data Control Language, authorization statement grant, revoke

Alter session alter system

Iii. Oracle

Database)

DBMS database management system)

DBA Database Administrator

Database management systems: ms, Microsoft SQL server,

IBM db2, imformix,

Mysql,

Oracle oracle920,

Sybase ase

Iv. Related Operations

Echo $ PATH: configure the environment variable, add/oracledata/oracle/product/9.2.0/bin, and add the oracle command

Echo $ ORACLE_SID: view the Oracle database instance. The instance is the method for accessing the database. Default port number: 1521

1. sqlplus database access commands (local access/remote access) and database connection commands are the database operation environment

Sqlplus user name/Password

2. show user: displays the user Name of the current user.

You can directly connect the user name/password to change your identity. This is the sqlplus command.

Available in sqlplus! You can switch between shell and sqlplus ,! You can use shell commands in sqlplus.

In fact, sqlplus runs a sub-process to execute shell commands.

3. There are two types of tables in the Oracle database: User tables (User-operated tables) and system tables (tables maintained by the database system, also called data dictionaries)

DDL operations on user tables have triggered DML operations on system tables!

  • 1
  • 2
  • Next Page

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.