gpt4 book ai didi

sql-server - 如何在SQL Server中删除触发器?

转载 作者:行者123 更新时间:2023-12-02 03:27:30 28 4
gpt4 key购买 nike

我需要删除 SQL Server 中的触发器。看起来应该很简单,但是因为有一种称为“删除触发器”的东西,即在删除时调用的触发器,所以似乎不可能找到有关如何实际删除已存在的触发器的资源。

最佳答案

DROP TRIGGER :

Removes one or more triggers from the current database...

You can remove a trigger by dropping it or by dropping the trigger table. When a table is dropped, all associated triggers are also dropped. When a trigger is dropped, information about the trigger is removed from the sysobjects and syscomments system tables.

Use DROP TRIGGER and CREATE TRIGGER to rename a trigger. Use ALTER TRIGGER to change the definition of a trigger...

关于sql-server - 如何在SQL Server中删除触发器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4571388/

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