![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 10.06.2003 Skąd: Kielce Ostrzeżenie: (0%) ![]() ![]() |
mam zrobic projekt bazy szkoly i wyskrobalem cos takiego:
use Szkola; create table nauczyciele ( nauczycielid int unsigned not null auto_increment primary key, nazwisko char(30) not null, klasaid int unsigned not null ); create table uczniowie ( uczenid int unsigned not null auto_increment primary key, nazwisko_ucznia char(30) not null, klasaid int unsigned not null ); create table klasy ( klasaid int unsigned not null auto_increment, nr_klasy char(5) not null, nauczycielid int unsigned not null, uczenid int unsigned not null, przedmiotid int unsigned not null, primary key(klasaid, nr_klasy) ); create table przedmioty ( przedmiotid int unsigned not null auto_increment primary key, nazwa_przedmiotu char(60) unsigned not null, nauczycielid int unsigned not null, uczenid int unsigned not null, klasaid int unsigned not null, ); tylko dupa zbita bo wyskakuja mi bledy i nie wiem o co kaman... |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 06:52 |