Last active
August 31, 2018 08:48
-
-
Save pigreco/15ffe9a363f17c8781ad6ff0041c7279 to your computer and use it in GitHub Desktop.
esempio di trigger usato in un geopackage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TRIGGER update_liv3 AFTER INSERT | |
ON punti_test_trigger | |
BEGIN | |
update punti_test_trigger set liv3 = | |
(select livello3 from CLC where st_within(new.geometry, geom)) | |
WHERE ROWID=NEW.ROWID; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment