22 lines
323 B
Plaintext
22 lines
323 B
Plaintext
/*
|
|
create tables for test db
|
|
*/
|
|
|
|
|
|
create sequence test_div_seq;
|
|
commit;
|
|
create domain D_ID as BIGINT;
|
|
create domain D_BIGINT as BIGINT;
|
|
|
|
create table test_div(
|
|
test_div_id d_id generated always as identity
|
|
, numerator D_BIGINT
|
|
, denominator D_BIGINT
|
|
, result COMPUTED BY ( DIV(numerator, denominator) )
|
|
|
|
);
|
|
|
|
commit;
|
|
|
|
|