ORACLE uuid自动生成主键
2014-05-07 14:23
148 查看
-- Create table create table TECHNOLOGYCOMPANY ( ID VARCHAR2(32) default SYS_GUID() not null, FLOWID VARCHAR2(50), CONPANYID NUMBER, ISCOMMUNICATION VARCHAR2(10) ) tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K minextents 1 maxextents unlimited ); -- Add comments to the table comment on table TECHNOLOGYCOMPANY is '技术交流的交流公司'; -- Add comments to the columns comment on column TECHNOLOGYCOMPANY.FLOWID is '申请编号'; comment on column TECHNOLOGYCOMPANY.CONPANYID is '竞争对手ID'; comment on column TECHNOLOGYCOMPANY.ISCOMMUNICATION is '是否交流'; -- Create/Recreate primary, unique and foreign key constraints alter table TECHNOLOGYCOMPANY add constraint SYS_TECHNOLOGYCOMPANY primary key (ID) using index tablespace USERS pctfree 10 initrans 2 maxtrans 255 storage ( initial 64K minextents 1 maxextents unlimited );
相关文章推荐
- oracle 在插入数据库时自动生成主键
- Cordys 主键自动 生成规则 前端 后端
- Hibernate保存数据自动生成主键出现奇怪异常Duplicate entry '0' for key 1
- Mysql-ibatis 自动生成主键(selectKey)
- iBATIS自动生成主键(oracle,sqlserver,mysql)
- Mybatis 自动生成主键
- Mybatis 自动生成主键
- asp.net core中使用EF Core自动生成表的Id主键
- 数据库_jdbc_调用存储过程+获取自动生成主键
- Hibernate 中oracle 主键的自动生成办法(笔记)
- 获取MySql数据库自动生成的主键值
- Oracle主键自增长及自动生成策略
- SQL Server 自动 生成流水号 字符串主键
- mybatis自动生成主键
- 关于自动生成主键和日期
- iBatis自动生成的主键 (Oracle,MS Sql Server,MySQL)
- iBatis自动生成的主键 (Oracle,MS Sql Server,MySQL)
- Oracle 自动加一主键字段生成
- ibatis2.3.4 配置主键自动生成
- 使用JDBC如何获取数据库自动生成的主键