dbTalk Databases Forums  

Questions for cross tables update.

comp.databases comp.databases


Discuss Questions for cross tables update. in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Franklin Li
 
Posts: n/a

Default Questions for cross tables update. - 06-09-2006 , 03:27 AM






Hi All,

Current we have below tables update scenario:

There are 2 tables example1_tbl and example2_tbl. When customers update
example1_tbl, we want example2_tbl are updated automaticly. That means
example2_tbl need sync up with example1_tbl update.

For Database, how can we do this?

Thanks.

Franklin


Reply With Quote
  #2  
Old   
Michael Zedeler
 
Posts: n/a

Default Re: Questions for cross tables update. - 06-09-2006 , 04:11 AM






Franklin Li wrote:
Quote:
Current we have below tables update scenario:

There are 2 tables example1_tbl and example2_tbl. When customers update
example1_tbl, we want example2_tbl are updated automaticly. That means
example2_tbl need sync up with example1_tbl update.

For Database, how can we do this?
Some database systems support triggers. A trigger is a stored procedure
that will run when certain database events takes placs (mostly
modification of data). Such a procedure can be written to modify
dependent tables as you describe.

Regards,

Michael.
--
Which is more dangerous? TV guided missiles or TV guided families?
I am less likely to answer usenet postings by anonymous authors.
Visit my home page at http://michael.zedeler.dk/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.