• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc-trigger creation

 
anish reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
example program to create a trigger from jdbc program.
can i invoke trigger from jdbc program.
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Got this defenition from Wikipedia:-

A database trigger is procedural code that is automatically executed in response to certain events on a particular table in a database. Triggers can restrict access to specific data, perform logging, or audit data modifications.


It clearly states that triggers are setup on the database to perform certain steps when a particular event occurs on the database. A trigger can be executed on the database if a JDBC program performs any action that has been declared to 'trigger' it.

Does this answer your doubt?

Cheers,
Raj.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!