MyFirstUDRKit/test/testudrkit.ddl

22 lines
323 B
Plaintext
Raw Normal View History

2023-01-25 14:54:48 +01:00
/*
create tables for test db
*/
create sequence test_div_seq;
commit;
create domain D_ID as BIGINT;
2023-01-25 15:58:16 +01:00
create domain D_BIGINT as BIGINT;
2023-01-25 14:54:48 +01:00
create table test_div(
test_div_id d_id generated always as identity
2023-01-25 15:58:16 +01:00
, numerator D_BIGINT
, denominator D_BIGINT
, result COMPUTED BY ( DIV(numerator, denominator) )
2023-01-25 14:54:48 +01:00
);
2023-01-25 15:58:16 +01:00
commit;
2023-01-25 15:58:16 +01:00