This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes trigger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "trigger" Watch "trigger" New topic



Joined: Aug 13, 2001
Posts: 4
i have the following trigger which inserts the region field into the member table every time a user registers or updates their personal details through the website.
CREATE TRIGGER [regiontree] ON [member]
UPDATE member SET region = Region.region FROM Region WHERE =
However i have been told that to this trigger will update all the rows in the table every time.
How can i make this trigger to select one single row?
the member table has the unique identidier memberid.
The Region table doesnt have any unique identifier, it only contains two fields (region and country) and a fixed number of records (50 countries and 15 regions).
Many thanks for any help
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: trigger
It's not a secret anymore!