Database Learning (Oracle)

Source: Internet
Author: User

Oralce Data types

Number,varchar2,char,date

Storage encoding for Char and VARCHAR2:

Maximum length of char and VARCHAR2:

Long and CLOB types

To create a table:

Create statement, creating a table

DESC statement, viewing table structure

Default statement, specifying a value for the column

NOT NULL constraint to ensure that field values are not empty

------------------------------------------------

To modify a table:

RENAME Modify Table name: RENAME old_name to New_name;

ALTER TABLE adds a column to the ADD clause:

ALTER TABLE DROP clause delete column: ALTER TABLE table_name drop (column);

ALTER TABLE's MODIFY clause modifies the column:

DML statement:

Insert,update,delete

String functions:

Concat and "| |", string connection

Length returns string lengths

Upper,lower and Initcap uppercase and lowercase conversion functions

Trim,ltrim,rtrim truncate SUBSTRING

Lpad,rpad-Complement function

Substr getting substrings

InStr returns the position of the substring in the source string

Numeric functions:

Round for rounding

Trunc for interception

MoD to find remainder

Ceil and floor

Date:

Database Learning (Oracle)

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.