I wrote a trigger in which I have a line:
SELECT *
INTO :NEW.EVENTDATE
FROM (SELECT SYSDATE
FROM DUAL);
For some reason this does not work (EVENTDATE column has timestamp(0) type).
When I try to insert something I get error message saying that value is too long for that column. I though SYSDATE and timestamp(0) would coalesce and understand each other.
What the ?
You should just do this in PL/SQL
but if you want to use SQL