AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Firebird IN, EXISTS Langsam
Thema durchsuchen
Ansicht
Themen-Optionen

Firebird IN, EXISTS Langsam

Ein Thema von Gruber_Hans_12345 · begonnen am 7. Feb 2011 · letzter Beitrag vom 8. Feb 2011
 
omata

Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
 
Delphi 7 Enterprise
 
#11

AW: Firebird IN, EXISTS Langsam

  Alt 7. Feb 2011, 22:14
Deine DB-Struktur sieht also folgendermaßen aus...
SQL-Code:
CREATE TABLE artikel (
  artikel_id int,
  CONSTRAINT PK_artikel
    PRIMARY KEY (artikel_id)
);

CREATE TABLE position (
  position_id int,
  CONSTRAINT PK_position
    PRIMARY KEY (position_id)
);

CREATE TABLE artikel_position (
  artikel_id int,
  position_id int,
  CONSTRAINT PK_artikel_position
    PRIMARY KEY (artikel_id, position_id),
  CONSTRAINT FK_artikel_position_artikel
    FOREIGN KEY (artikel_id) REFERENCES artikel (artikel_id),
  CONSTRAINT FK_artikel_position_position
    FOREIGN KEY (position_id) REFERENCES position (position_id)
);
Ist das richtig?

Geändert von omata ( 7. Feb 2011 um 22:21 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:11 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz