![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 0 Dołączył: 5.03.2011 Ostrzeżenie: (0%) ![]() ![]() |
Czesc.
Mam dwie tabele : 1) Categories: -id -name 2) Club_has_categories -club_id -cat_id_1 -cat_id_2 -cat_id_3 Jak zrobic zapytanie gdzie pobieram z tabeli Club_has_categories wszystkie dane z tym ze dla pol - cat_id_1,cat_id_2, cat_id_3 zamiast numery id mam podana nazwe categorii z tabeli categories ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 9.01.2012 Ostrzeżenie: (0%) ![]() ![]() |
ta tabela has mogła by być w postaci:
-club_id -cat_id np. club_id , cat_id 1-1 1-2 1-3 sql : SELECT * FROM categories, Club_has_categories WHERE Club_has_categories.club_id = 1 |
|
|
![]()
Post
#3
|
|
![]() Newsman Grupa: Moderatorzy Postów: 4 005 Pomógł: 548 Dołączył: 7.04.2008 Skąd: Trzebinia/Kraków ![]() |
Zamykam za niepoprawną nazwę tematu.
-------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 19:31 |