ORACLE UUID proactively generates primary keys

Source: Internet
Author: User
Tags uuid

--Create Tablecreate table Technologycompany (ID VARCHAR2 (+) default sys_guid () not NULL, Flowid VARCHAR2 ( (), Conpanyid number, iscommunication VARCHAR2 (Ten)) tablespace USERS pctfree Initrans 1 Maxtrans 255 Storag E (initial 64K minextents 1 Maxextents Unlimited);--Add comments to the table comment on table technologycom Pany is ' Exchange company ';--Add comments to the columns comment on column technologycompany. Flowid is ' application number '; Comment on column technologycompany. Conpanyid is ' competitor ID '; Comment on column technologycompany. Iscommunication is ' communication ';--create/recreate primary, unique and FOREIGN KEY constraints alter TABLE Technologycompany a   DD Constraint Sys_technologycompany primary KEY (ID) using index tablespace USERS pctfree Initrans 2 Maxtrans 255 Storage (initial 64K minextents 1 Maxextents Unlimited); 

ORACLE UUID proactively generates primary keys

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.