You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/utils/kamctl/oracle/matrix-create.sql

18 lines
370 B

INSERT INTO version (table_name, table_version) values ('matrix','1');
CREATE TABLE matrix (
first NUMBER(10),
second NUMBER(5),
res NUMBER(10)
);
CREATE OR REPLACE TRIGGER matrix_tr
before insert on matrix FOR EACH ROW
BEGIN
auto_id(:NEW.id);
END matrix_tr;
/
BEGIN map2users('matrix'); END;
/
CREATE INDEX matrix_matrix_idx ON matrix (first, second);