Cytat
SUBSTRING_INDEX(str,delim,count)
Returns the substring from string str before count occurrences of the delimiter delim. If count is positive, everything to the left of the final delimiter (counting from the left) is returned. If count is negative, everything to the right of the final delimiter (counting from the right) is returned. SUBSTRING_INDEX() performs a case-sensitive match when searching for delim.
Więc wedle tego co napisano powyżej zwróci mi wszystko co znajdzie się na lewo lub prawo od jednostki po 33 spacji i dokładnie tak się dzieje
Dzięki i tak, bo w manualu tuż nad SUBSTRING_INDEX znalzłem jeszcze SUBSTRING i skleciłem zapytanie w taki sposób:
SELECT SUBSTRING(SUBSTRING_INDEX(DATA,' ',33), -2) //(...)
, dostaje więc to czego chcem - został mi jeszcze jeden mał problem - jeśli dam:
SELECT
//jakies tam pola, miedzy innymi TO felerne
ORDER BY SUBSTRING(SUBSTRING_INDEX(DATA,' ',33), -2)
zwrot dostaję jakiś pomieszany, a już napewno nie ułożony jak należy