You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that's what I did, but this code generates the following sql
CREATE FUNCTION myFunction() RETURNS trigger as $LC_TRIGGER_AFTER_UPDATE_MYFUNCTION$
BEGIN
IF NEW."Column1" <> OLD."Column1" OR NEW."Column2" <> OLD."Column2" THEN
....
END IF;
RETURN NEW;
END;
$LC_TRIGGER_AFTER_UPDATE_MYFUNCTION$ LANGUAGE plpgsql;
CREATE TRIGGER LC_TRIGGER_AFTER_UPDATE_MYFUNCTION AFTER UPDATE
ON your_table
FOR EACH ROW EXECUTE PROCEDURE myFunction();
and I need the trigger condition to be triggered not in the trigger body, as it is here.
CREATE TRIGGER trg_update_trigger
AFTER UPDATE OF column1 ON your_table
FOR EACH ROW
EXECUTE FUNCTION your_update_function();
is there any possibility with the next update to add support for triggers on certain table columns?
Is it possible to add to the library support for triggers that are triggered only when certain columns in the table are updated?
expected sql of such a trigger:
syntax how it would look like:
The text was updated successfully, but these errors were encountered: