Posts by Ricardo Ferreira • 21 points
1 post
-
2
votes3
answers200
viewsA: List columns according to current date
A solution similar to Gustavo’s, but without having to list all fields (a detail, I changed the fields from 1 to 9, putting a zero in front): SELECT CONCAT( 'SELECT ', SUBSTRING_INDEX(…