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 (1 - 6)
viking
post
Post #2





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

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


https://www.youtube.com/watch?v=J3xvwhqYYMQ


--------------------
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%)
-----


A nie da się tego zrobić za pomocą polecenia sql?
Go to the top of the page
+Quote Post
viking
post
Post #4





Grupa: Zarejestrowani
Postów: 6 380
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 #5





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
Pyton_000
post
Post #6





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


nie działa bo?
Go to the top of the page
+Quote Post
viking
post
Post #7





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

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


Zapytanie wygląda dobrze. Tylko dużo łatwiej jest wyklikać np w HeidiSQL niż robić to ręcznie.


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 21.08.2025 - 11:02