Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7090451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:03:22+00:00 2026-05-28T08:03:22+00:00

I have an interesting question: I have a table with trigger names, called Foo

  • 0

I have an interesting question:
I have a table with trigger names, called Foo and the Foo.TriggerName field stores trigger names. If I delete a row from Foo, I would like a trigger which would drop the trigger with the name Foo.TriggerName.

Example:

Foo
ID, TriggerName
1,  'Lorem'
2,  'Ipsum'
3,  'Bar'

When I am deleting the row with ID = 3, I would like to automatically delete the trigger with the name 'Bar'. How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:03:23+00:00Added an answer on May 28, 2026 at 8:03 am

    You can try to use dynamic sql

    You can define a trigger for delete on Foo
    and in trigger you can do dynamic sql call

    CREATE OR REPLACE TRIGGER foo_before_delete
    BEFORE DELETE
        ON Foo
        FOR EACH ROW
    BEGIN
    
    EXECUTE IMMEDIATE 'DROP TRIGGER '||:old.TriggerName||';';
    
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interesting question. Imagine I have a lot of data changing in
I have a interesting question: I want to split the year into 4 quarters.
An interesting question arose today. Let's say I have a .NET object that implements
I have recently come across an interesting question on strings. Suppose you are given
Here's an interesting question. I have a system that attempts to run some initialization
I have an interesting problem and would appreciate your thoughts for the best solution.
Googling it a bit I found this to be an interesting question. Would like
I have one very interesting question (for me :) ).. I'm using jquery and
I inspired by MeBigFatGuy interesting question , in this conection I have very specific
I have a broad but interesting OpenCV question and I'm wondering where to start.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.