Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z zapytaniem
pacior
post 11.03.2008, 13:18:18
Post #1





Grupa: Zarejestrowani
Postów: 101
Pomógł: 2
Dołączył: 25.09.2007

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


Jeśli mamy

select ... from ... where zmienna in (select)

Jak zapisać poprawnie i czy się da coś takiego

select ... from ... where (select) in (select)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
abusiek
post 11.03.2008, 15:25:20
Post #2





Grupa: Zarejestrowani
Postów: 89
Pomógł: 5
Dołączył: 23.10.2006
Skąd: Gda?sk

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


Wedlug W3C nie:

The IN operator may be used if you know the exact value you want to return for at least one of the columns.

SELECT column_name FROM table_name
WHERE column_name IN (value1,value2,..)
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: 14.08.2025 - 07:40