gpt4 book ai didi

postgresql - 下降触发器显示错误

转载 作者:行者123 更新时间:2023-12-01 22:24:05 25 4
gpt4 key购买 nike

我正在学习 PostgreSQL 之后学习 python。我关注 tutorialspoint.com 网站。

没有问题,直到我创建了一个触发器并且它就像一个魅力......

但是当我尝试删除(即删除)触发器时,出现以下错误。

DROP TRIGGER example_trigger;
ERROR: syntax error at or near ";"
LINE 1: DROP TRIGGER example_trigger;
^

我不确定为什么会出现此错误。请帮帮我。这很常见还是我错了?

最佳答案

As documented in the manual ,正确的语法是:

drop trigger example_trigger on table_name;

关于postgresql - 下降触发器显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37588994/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com