随笔分类 - Oracle.序列/触发器
摘要:Oracle数据库中,ID的生成机制多见使用sequence,如Mapper层的以下函数: @Insert(" insert into dmo_task(id,project_id,table_name,fromDsIdx,toDsIdx,userid) values(dmo_task_id_sqs
阅读全文
摘要:严格来说,本文讲述的只是oracle的内容,但因为1Mpper类里写的SQL,故而就和MyBatis挨上了。 表定义: create table mc_user( id number(8), deleted number(1) default 0, create_time timestamp def
阅读全文
摘要:// 注意表名,字段名,索引名 尽量不要带引号 CREATE TABLE FIRSTTB ( "ID" NUMBER(8,0) not null primary key, "NAME" NVARCHAR2(60) not null, "AGE" NUMBER(4,0) DEFAULT 0 not n
阅读全文