today:
1,094
yesterday:
2,073
Total:
1,300,997

SQL CREATE TABLE

admin 2018.09.25 19:56 Views : 576

CREATE TABLE DEDUCTION_RESULT 
("DEDUCT_ID" NUMBER, "MISSIONARY_ID" VARCHAR2(20),"RECEIPT_NO" NUMBER,"SUPPORTER_ID" NUMBER, "AMOUNT" NUMBER,"CONTRIBUTION_DATE" DATE ,"DEDUCTION" NUMBER )

 CREATE SEQUENCE   "DEDUCTION_RESULT_SEQ"  MINVALUE 1 MAXVALUE 9999999999999999 INCREMENT BY 1 START WITH 100 CACHE 20 NOORDER  NOCYCLE

CREATE OR REPLACE TRIGGER  "INSERT_DEDUCTION_RESULT" 
BEFORE INSERT ON DEDUCTION_RESULT
FOR EACH ROW
DECLARE
  DEDUCT_ID_sv number;
  SELECT DEDUCTION_RESULT_SEQ.nextval
    INTO DEDUCT_ID_sv
    FROM dual;
  :new.DEDUCT_ID := DEDUCT_ID_sv;
  
End;
No. Subject Author Date Views
41 Monthly SUM admin 2023.05.22 161
40 LOOP TABLE UPDATE admin 2023.05.19 339
39 STARTUP admin 2022.09.01 179
38 ACTION admin 2019.01.11 6611
37 SELECT last_name FROM admin 2018.12.12 846
» CREATE TABLE admin 2018.09.25 576
35 VERY IMPORTANT admin 2018.06.26 314
34 MISSIONARY_SUB admin 2018.06.25 284
33 TABLE PRINT admin 2018.06.18 294
32 GP PRINT admin 2018.05.31 1068
31 How to convert DATE to NUMBER admin 2018.05.27 332
30 DATE Compare admin 2018.05.22 472
29 Oracle SQL Developer: Online Migration 3.1 admin 2018.04.25 226
28 How to Update Oracle XE admin 2018.04.25 237
27 SQL admin 2016.07.15 498
26 SUBSTR admin 2016.05.26 351
25 FOR LOOP admin 2016.05.20 353
24 ROWNUM admin 2016.05.19 320
23 NVL admin 2016.05.19 232
22 INSTR admin 2016.05.19 901