Geef de definitie hoe een tabel te maken

  • create tabel <naam>
    (
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       primary key (<kolomnaam/namen>)         
    );

    of

    create tabel <naam>
    (
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       <kolomnaam> <datatype> (<tekens>) <not null of null>,
       primary key (<kolomnaam/namen>, <kolomnaam/namen>),
       foreign key (<kolomnaam>) references <tabelnaam>
    );

    Rapporteer Plaats commentaar