title: How to pull SQL query into trigger?
body: <p>I am using oracle database.</p>
  
  <p>I am trying to write a trigger on tables. I didn't mention any primary key, foreign key constraints on those tables. I am trying to achieve those using triggers.</p>
  
  <p>I wrote triggers for primary key and foreign key constraints.</p>
  
  <p>If I want to delete some foreign key record in the table, if I mention cascade then it will delete the record. IF I don't mention the cascade in the SQL query while deleting the record it should display an error.. saying that it is a primary key for the other table so, you can't delete.</p>
  
  <p>For this, I need to check the String 'CASCADE' is present in the SQL query inside my trigger.
  So, how can I pull the delete query on some X table into my trigger.</p>