Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

PL/Proxy > Beispiel

Beispiel

In diesem Abschnitt wird eine kleine Beispielanwendung vorgestellt, die PL/Proxy verwendet. Daran können Sie sich ein Bild davon machen, wie PL/Proxy im Einsatz aussieht und ob der Einsatz für eigene Anwendungen infrage kommen könnte.

Auf den beteiligten Datenbanken proxy, customer1 und customer2 werden zuerst die Tabellen für die Anwendung erzeugt, in unserem Beispiel eine kleine Tabelle mit Kundendaten:

CREATE TABLE customer (
       id serial PRIMARY KEY,
       lastname text NOT NULL,
       firstname text NOT NULL,
       zipcode varchar(5) NOT NULL,
       street text NOT NULL,
       town text NOT NULL,
       registration_ts timestamp NOT NULL DEFAULT localtimestamp
);
COMMENT ON TABLE customer IS 'Tabelle mit Kundendaten';

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial