ORACLE CREATE TABLE (11g)

Source: Internet
Author: User

CREATE Table Statement

CREATE table [schema.] Table name (column datatype [DEFAULT expr][, ...]);

Specify a default value for the column during the insertion

... hire_date date DEFAULT sysdate,...

The default value must satisfy the data type definition of the column

CREATE TABLE Hire_dates (ID number (8), hire_date date default sysdate);

CREATE TABLE Dept (deptno Number (2), dname varchar2 (+), loc varchar2, create_date date default sysdate);

Data Type Dsecription
VARCHAR2 (size) Variable long character data
char (size) Fixed-length character data
Number (P,s) Variable Long Value data
Date Date and time values
Long Variable long character data (up to 2GB)
Clob Character data (up to 4GB maximum)
Raw and log raw Binary data
Blob Binary data (up to 4GB maximum)
bfile Store binary data for external files (up to 4GB)
rowID Base-64 line unique address for system encoding

ORACLE CREATE TABLE (11g)

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.