![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 39 Pomógł: 0 Dołączył: 25.03.2006 Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Po prostu jestem w szoku, buduję najprostsze zapytanie w którym chce użyć LAST lub FIRST i nie działa. Wersje serwera nowe, spokojnie powinno chodzić a tu zonk. SELECT FIRST(galleries.id) FROM galleries za to np.: SELECT AVG(galleries.id) FROM galleries śmiga aż miło. Ma ktoś jakiś pomysł? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 39 Pomógł: 0 Dołączył: 25.03.2006 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#3
|
|
Grupa: Moderatorzy Postów: 6 072 Pomógł: 861 Dołączył: 10.12.2003 Skąd: Dąbrowa Górnicza ![]() |
A ty tutaj: http://bugs.mysql.com/bug.php?id=2020 Cytat I wonder why there is no FIRST and LAST aggregate functions in MySql. Somebody told me
this impossible because MySql save data in B-tree and returned set is unordered. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 18:35 |