Einzelnen Beitrag anzeigen

cugar

Registriert seit: 6. Jan 2007
149 Beiträge
 
Delphi XE Professional
 
#3

Re: Master / Detail -Was ist hier falsch?

  Alt 2. Feb 2007, 20:20
CREATE TABLE "KUNDENRECHNUNGEN"
(
"ID" INTEGER NOT NULL,
"FIRMA" "TSTR(50)",
"KST" "TSTR(20)",
"KONTAKTVORNAME" "TSTR(30)",
"KONTAKTNAME" "TSTR(30)NOTNULL" NOT NULL,
"TELEFONNR" "TSTR(30)NOTNULL" NOT NULL,
"TELEFONNR2" "TSTR(30)",
"FAXNR" "TSTR(30)",
"EMAIL" "TSTR(50)",
"PLZ" "TSTR(10)NOTNULL" NOT NULL,
"ORT" "TSTR(30)NOTNULL" NOT NULL,
"STRASSE" "TSTR(30)NOTNULL" NOT NULL,
"HAUSNR" "TSTR(20)",
"ZUSATZINFO" "TSTR(250)",
"ANREDEID" INTEGER NOT NULL,
PRIMARY KEY ("ID")
);


CREATE TABLE "KUNDENLIEFERUNGEN"
(
"ID" INTEGER NOT NULL,
"KDID" INTEGER NOT NULL,
"KDNR" INTEGER NOT NULL,
"BESTELLNR" "TSTR(20)",
"FIRMA" "TSTR(50)",
"KST" "TSTR(20)",
"KONTAKTVORNAME" "TSTR(30)",
"KONTAKTNAME" "TSTR(30)NOTNULL" NOT NULL,
"TELEFONNR" "TSTR(30)NOTNULL" NOT NULL,
"TELEFONNR2" "TSTR(30)",
"FAXNR" "TSTR(30)",
"EMAIL" "TSTR(50)",
"ORT" "TSTR(30)NOTNULL" NOT NULL,
"STRASSE" "TSTR(30)NOTNULL" NOT NULL,
"HAUSNR" "TSTR(20)",
"ZUSATZINFO" "TSTR(250)",
"BELIEFERUNG" INTEGER NOT NULL,
"PLZ" "TSTR(10)NOTNULL" NOT NULL,
"ANREDEID" INTEGER,
UNIQUE ("KDNR"),
PRIMARY KEY ("ID")
);
  Mit Zitat antworten Zitat