Created
November 4, 2015 16:11
-
-
Save mergeweb/9aa53241fd9f819cc569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select id, | |
(SELECT GROUP_CONCAT(`COLUMN_NAME` SEPARATOR ', ') | |
FROM `INFORMATION_SCHEMA`.`COLUMNS` | |
WHERE `TABLE_SCHEMA`='heavysalvage' | |
AND `TABLE_NAME`='auctions' | |
AND COLUMN_NAME LIKE '%rear_%') | |
from auctions order by cab DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment