Results 1 to 4 of 4
- 12-22-2011, 07:34 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 10
- Rep Power
- 0
jdbc trigger to check other tables
i am developing a hostel management software using java as a frontend and a derby database as a back endn in my software i can create multiple hostel tables and the user can enter records in these tables... however i need to create a jdbc trigger in each table before insert that checks if the record being entered on a current table exists on another table, can anybody help me do this please, its urgent
- 12-22-2011, 09:30 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: jdbc trigger to check other tables
It's all in the JavaDB Reference Documentation.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-23-2011, 01:05 PM #3
Member
- Join Date
- Dec 2011
- Posts
- 10
- Rep Power
- 0
Re: jdbc trigger to check other tables
thanks so much for your prompt reply, however i seem to be tottaly stuck when it comes to creating the sql statement in the trigger body i have been skimming through the guide practically the whole night and derby doesnt seem to support "if exists". could u pliz point me in the right direction when it comes to creating the sql statement to perform the referential check?
- 12-23-2011, 01:11 PM #4
Member
- Join Date
- Dec 2011
- Posts
- 10
- Rep Power
- 0
Similar Threads
-
jdbc combobox link between two tables
By pager in forum Advanced JavaReplies: 2Last Post: 04-27-2011, 05:24 PM -
Trigger an Event
By koxy in forum Advanced JavaReplies: 1Last Post: 03-24-2010, 07:45 AM -
JDBC class check
By DavidBainbridge in forum New To JavaReplies: 4Last Post: 08-17-2009, 12:52 PM -
Mutating trigger help
By xcallmejudasx in forum JDBCReplies: 4Last Post: 04-24-2009, 10:49 PM -
programmaticly trigger an event
By maxim in forum AWT / SwingReplies: 3Last Post: 02-23-2009, 03:27 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks