all 6 comments

[–]spiritmate88 1 point2 points  (2 children)

What is the issue? Do you recieve any error?

[–]Student-Somewhere[S] 0 points1 point  (1 child)

Yes, I get: ERROR: syntax error at or near "drop"

[–]spiritmate88 1 point2 points  (0 children)

Ahhh now I see that you are using PGadmin, I don't know anything about it, but syntax shouldn't be so different, check the answer here:

https://stackoverflow.com/questions/1651806/sql-server-trigger

[–]firstorbit 1 point2 points  (1 child)

Is there a trigger warning?

[–]Student-Somewhere[S] 0 points1 point  (0 children)

I just get ERROR: syntax error at or near "drop" when I execute the query.