Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Relacje
Damalin
post
Post #1





Grupa: Zarejestrowani
Postów: 47
Pomógł: 0
Dołączył: 27.11.2016

Ostrzeżenie: (0%)
-----


Witam, jak stworzyć takie relacje w phpmyadmin ?
http://scr.hu/2oml/uhtcg
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
viking
post
Post #2





Grupa: Zarejestrowani
Postów: 6 381
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Da się. Patrz dokumentacja mysql - create table.

Ten post edytował viking 17.12.2016, 11:20:44
Go to the top of the page
+Quote Post
Damalin
post
Post #3





Grupa: Zarejestrowani
Postów: 47
Pomógł: 0
Dołączył: 27.11.2016

Ostrzeżenie: (0%)
-----


Cytat(viking @ 17.12.2016, 11:20:24 ) *
Da się. Patrz dokumentacja mysql - create table.


ALTER TABLE `stypendium`
ADD FOREIGN KEY (`id_studenta`)
REFERENCES `student`(`id_studenta`)
Takie coś mi nie wchodzi ;< chce żeby w tabeli stypendium znalazło się id_studenta z tabeli student
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 7.10.2025 - 04:09