Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Fr 03.01.03 09:25 
Morgen Leutz !

Wie erstelle ich eine Tabelle in SQL ?
Ich habe so was gehört mit "Create" ?
Kann mir jemand die Syntax sagen ?

Jagg !
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 03.01.03 09:55 
Hi,

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
SET SQL DIALECT 3;

SET NAMES ISO8859_1;

CREATE TABLE ART8  (
    ID INTEGER NOT NULL,
    NR INTEGER NOT NULL,
    .
    .
    BEZ CHAR (25) NOT NULL, 
    PRIMARY KEY (ID),
    FOREIGN KEY (ARWGHAUPT) REFERENCES WG8 (ID)
      ON UPDATE CASCADE
      ON DELETE CASCADE,

COMMIT;


Das ist nur ein Beispiel und denk daran, daß die leere DB vorhanden sein muß !

Gruß
Hansa
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 03.01.03 11:04 
Hallo Jagg,

da kann ich dir nur dieses Buch empfehlen.

Gruß
Klabautermann
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Fr 03.01.03 11:55