for larger number of columns - copy and paste the header row into your select command, then you can find and replace the pipe symbol with ],[ and then finish off with a leading [ and trailing ]
or if you want to be really lazy, use something like textpad which has regex search and replace, you can then replace the pipe symbol with:
so your columns are listed nicely.
or use an online tool like:
to format the query.
remember, if you're working as a programmer than anything can be programmed, even the sometimes tedious task of programming