blob: 7676ef6aebcb4286b56176311aee9d0ab5d46c47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* This file was generated by ODB, object-relational mapping (ORM)
* compiler for C++.
*/
SET FEEDBACK OFF;
WHENEVER SQLERROR EXIT FAILURE;
WHENEVER OSERROR EXIT FAILURE;
BEGIN
BEGIN
EXECUTE IMMEDIATE 'DROP TABLE "person" CASCADE CONSTRAINTS';
EXCEPTION
WHEN OTHERS THEN
IF SQLCODE != -942 THEN RAISE; END IF;
END;
BEGIN
EXECUTE IMMEDIATE 'DROP SEQUENCE "person_seq"';
EXCEPTION
WHEN OTHERS THEN
IF SQLCODE != -2289 THEN RAISE; END IF;
END;
END;
/
CREATE TABLE "person" (
"id" NUMBER(20) NOT NULL PRIMARY KEY,
"num" NUMBER(10) NOT NULL UNIQUE,
"str" CLOB NOT NULL);
CREATE SEQUENCE "person_seq"
START WITH 1 INCREMENT BY 1;
EXIT;
|