Oracle Build Table

Source: Internet
Author: User

CREATE TABLE T_hq_e
(
XINGM VARCHAR2 (10),
CHENGJ number is not NULL,
Jiatzz VARCHAR2 (15)
)
Tablespace SYSTEM
Pctfree 10
Pctused 40
Initrans 1
Maxtrans 255
Storage
(
Initial 16K
Minextents 1
Maxextents Unlimited
);
--ADD comments to the columns
Comment on column t_hq_e.xingm
is ' name ';
Comment on column T_hq_e.chengj
is ' performance ';
Comment on column T_hq_e.jiatzz
Is ' home address ';
--Create/recreate primary, unique and foreign KEY constraints
ALTER TABLE T_hq_e
Add constraint Pk_t_hq_jiatdz primary key (CHENGJ)
Using index
Tablespace SYSTEM
Pctfree 10
Initrans 2
Maxtrans 255
Storage
(
Initial 64K
Minextents 1
Maxextents Unlimited
);
--create/recreate CHECK constraints
ALTER TABLE T_hq_e
Add Constraint Check_chengj
Check (chengj>60 and Chengj <100);

Oracle Build Table

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.