Thema: Delphi Insert oder Update ?

Einzelnen Beitrag anzeigen

Hansa

Registriert seit: 9. Jun 2002
Ort: Saarland
7.554 Beiträge
 
Delphi 8 Professional
 
#5

Re: Insert oder Update ?

  Alt 1. Nov 2003, 10:52
Sharky ist da wie es aussieht ziemlich nah dran, aber das hier ist wahrscheinlich die Lösung :

Zitat von Borland:
> Whats the best way to handle this ?

I think the most elegant way would be to write an updateable VIEW (a
JOIN with the result set you need and triggers to do the
INSERTs/UPDATEs on the underlying tables). Your app simply treats the
VIEW like it was a table, and the DB server hides the implementation
details.
Views sind einige der wenigen Dinge, mit denen ich mich noch nicht beschäftigt habe. Nur, was meint der mit einem updateable VIEW ??? Und was soll das für ein JOIN sein ???
Gruß
Hansa
  Mit Zitat antworten Zitat