BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

which component to manage 2 Tables ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Adalberto Baldini
Guest





PostPosted: Mon May 14, 2007 5:37 pm    Post subject: which component to manage 2 Tables ? Reply with quote



Given this query from 2 tables
select A.csoc, A.nreserc, A.csez, A.fl_sezio, A.nicknm,
B.coddiv, B.curcycod, B.codiva
from sezio A
left join sezio_1 B on (A.csoc = B.csoc and A.nreserc = B.nreserc and
A.csez = B.csez)

which is the best component to use for insert and update both table ?

Thanks
Adalberto Baldini
Back to top
Bill Todd
Guest





PostPosted: Mon May 14, 2007 6:49 pm    Post subject: Re: which component to manage 2 Tables ? Reply with quote



Put the join in view then write triggers on the view to handle the
updates and inserts. See the Data Definition Guide for details.

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.