Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Sortowanie danych z bazy
Monaco
post
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 20.10.2013

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


Jesli mam cos takiego po przez zwykle zapytanie select*from xxx

A cos
B cos3
C cos
B cos1
B cos
A cos2
C cos2
A cos 3

i chcialbym żeby wysiwtlilo mi to tak:

A cos cos2 cos3
B cos3 cos1 cos
C cos cos2


Jak to mogę zrobić?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 561
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
The result is truncated to the maximum length that is given by the group_concat_max_len system variable, which has a default value of 1024. The value can be set higher, although the effective maximum length of the return value is constrained by the value of max_allowed_packet.

Hehe, moja podswiadomosc mowila mi o tym juz od dawna, dlatego prawie zawsze uzywam odpowiedniego zapytania a potem grupowanie robie juz w php. Pewnie, bezpieczenie i rownie szybko (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 28.12.2025 - 15:51