SELECT CONCAT("Line ", line_n, " ", GROUP_CONCAT(word ORDER BY word_position SEPARATOR " ")) FROM words GROUP BY line_n ORDER BY line_n;
GROUP_CONCAT is a powerful tool indeed - very useful in report building.
-sam
In reply to Re: fetching data from MySQL
by samtregar
in thread fetching data from MySQL
by frasco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |