create table TL_SMS_SENDTASKLIST_
(
NUMSEQID NUMBER(
DATCREATETIME DATE default SYSDATE not null
DATSRCSENDTIME DATE not null
DATSRCENDTIME DATE not null
NUMSRCCLIENTID INTEGER
NUMDESTCLIENTID INTEGER
NUMMESSAGEFORMAT INTEGER not null
NUMMESSAGEPRIORITY INTEGER not null
VC
VC
VC
VC
NUMREPORTTYPE INTEGER
VC
VC
NUMOPERATORID INTEGER not null
NUMPRODUCTID INTEGER not null
NUMCHANNELID INTEGER default
NUMPROVINCEID INTEGER default
NUMCITYID INTEGER default
NUMCOUNTYID INTEGER default
NUMSENDGROUPID INTEGER default
NUMSRCSEQID NUMBER(
NUMSVCID INTEGER not null
NUMMESSAGETYPE INTEGER not null
VC
NUMFEETYPE INTEGER default
NUMFEEVALUE INTEGER default
DATDEALTIME DATE
NUMDEALFLAG INTEGER not null
NUMMOSEQID NUMBER(
NUMSYSSEQID NUMBER(
NUMCOUNTMOBILE NUMBER(
)
tablespace TYUSER_SMS_SENDTASKLIST
pctfree
initrans
maxtrans
storage
(
initial
minextents
maxextents unlimited
);
alter table TL_SMS_SENDTASKLIST_
add constraint PK_TL_SMS_SENDTASKLIST_
using index
tablespace TYUSER_SMS_SENDTASKLIST_IDX
pctfree
initrans
maxtrans
storage
(
initial
minextents
maxextents unlimited
);
create index TL_SMS_SENDTASKLIST_
tablespace TYUSER_SMS_SENDTASKLIST_IDX
pctfree
initrans
maxtrans
storage
(
initial
minextents
maxextents unlimited
);
create sequence TLSEQ_SMS_SENDTASKLIST_
minvalue
maxvalue
start with
increment by
cache
insert into tl_sms_sendtasklist_
NUMMESSAGEPRIORITY
NUMCHANNELID
DATDEALTIME
values (TLSEQ_SMS_SENDTASKLIST_
hh
//批量插入數據
DECLARE
i INT;
BEGIN
i :=
WHILE(i <
LOOP
i := i +
insert into tl_sms_sendtasklist_
NUMMESSAGEPRIORITY
NUMCHANNELID
DATDEALTIME
values (TLSEQ_SMS_SENDTASKLIST_
hh
END LOOP;
COMMIT;
END;
需要大量oracle測試數據時
DECLARE
i INT;
BEGIN
i :=
WHILE(i <
LOOP
i := i +
INSERT INTO TEST_TABLE(ID
END LOOP;
COMMIT;
END;
From:http://tw.wingwit.com/Article/program/Oracle/201311/18596.html