Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
トリガーを削除することはできませんが、同じ名前で新しいトリガーを作成しようとすると、トリガーが存在することが警告されます。だから、何が悪いのかを理解するために、すべてのトリガーをリストしたいと思います。
sqlite_master テーブルを使用して、トリガーに関連するすべてのデータを取得できます (これには、トリガーを作成するための ddl コードが含まれます)。すべてのデータが必要ない場合は、クエリの一部の列を省略してください。
すべてのデータについて:
select * from sqlite_master where type = 'trigger';
名前のリストのみ:
select name from sqlite_master where type = 'trigger';