Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Relacje
Damalin
post 17.12.2016, 08:57:22
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 17.12.2016, 09:05:06
Post #2





Grupa: Zarejestrowani
Postów: 6 378
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 17.12.2016, 11:07:32
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 17.12.2016, 11:20:24
Post #4





Grupa: Zarejestrowani
Postów: 6 378
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 17.12.2016, 14:48:17
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 17.12.2016, 17:28:08
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 17.12.2016, 17:40:02
Post #7





Grupa: Zarejestrowani
Postów: 6 378
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 Wersja Lo-Fi Aktualny czas: 19.07.2025 - 06:56