Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL]Skomplikowane zapytanie
Deusx
post
Post #1





Grupa: Zarejestrowani
Postów: 126
Pomógł: 2
Dołączył: 27.08.2006

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


Witam, potrzebuje zapytania, które z będzie dodawać do tabeli lunas pewne rekord tabeli game_planets

tj powinno to być mniej więcej tak

Jeżeli planet_type=3 to
(lunas)
game_lunas(id) = game_planets(id)
game_lunas(id_luna) = game_planets(id)
game_lunas(name) = (Wszędzie moon)
game_lunas(image) = (wszędzie mond)
game_lunas(id_owner) = game_planets(id_owner)
game_lunas(galaxy) = game_planets(galaxy)
game_lunas(system) = game_planets(system)
game_lunas(lunapos) = game_planets(planet)
game_lunas(temp_min) = game_planets(temp_min)
game_lunas(temp_max) = game_planets(temp_max)

Może mi ktoś dać tylko wzór (lub zrobić jedno) a ja resztę sobie dopisze smile.gif



Go to the top of the page
+Quote Post
athei
post
Post #2





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


http://www.databasejournal.com/features/ms...-to-Another.htm
Go to the top of the page
+Quote Post
Deusx
post
Post #3





Grupa: Zarejestrowani
Postów: 126
Pomógł: 2
Dołączył: 27.08.2006

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


Mi cały czas błąd wyskakuje, dlatego prosił bym o gotowy przykład np. 2 rekordów:

Jeżeli planet_type=3 to

game_lunas(id) = game_planets(id)
game_lunas(id_luna) = game_planets(id)

Ten post edytował Deusx 10.01.2010, 11:40:13
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 - 04:38