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... |
|
|
|
CAPOman Składnia języka 10.06.2004, 10:09:02
mike_mech :arrow: Popraw posta, używając BBCode, będzie czyt... 10.06.2004, 10:12:05
Dawid Pytel 1.Przy zakładaniu ostatniej tabeli masz znak przec... 10.06.2004, 10:24:28
CAPOman no wiec tak przy pierwszych trzech tabelach jest w... 10.06.2004, 10:26:09
CAPOman po usunieciu przecinka wyskakuje ten sam blad... 10.06.2004, 10:29:25
Dawid Pytel Wszędzie gdzie masz pole CHAR usuń UNSIGNED. 10.06.2004, 10:31:28
CAPOman Thx wielkie ;]]] masz bonusika ode mnie Dawid poz... 10.06.2004, 10:36:57
Seth Prosze poprawic temat na zgodny z regulaminem. 10.06.2004, 11:37:19 ![]() ![]() |
|
Aktualny czas: 25.12.2025 - 03:46 |