As the statement says, I need a trigger that triggers after inserting a record in a table "table0". If the table1 does not exist this trigger must create it and then perform the insert. I had something like this:
CREATE OR REPLACE TRIGGER TRG_INSERT_HISTORIAL
AFTER INSERT ON tabla0
BEGIN
IF INSERTING THEN
IF NOT EXISTS (tabla1) THEN
CREATE TABLE tabla1 (...);
ELSE
INSERT INTO TABLA1 VALUES (...);
END IF;
END;
But I do not know well the sentence of "IF THERE IS NO TABLE1" then create it and insert "data" to said table. I hope a little help, thanks!