saturday – Paul Hayes https://paul-hayes.org Sat, 09 Jul 2016 18:17:36 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.4 Simple-Saturday: Easy Way to Format Your Select Query Results. Ain’t Nuthin’ but a \G Thang. https://paul-hayes.org/2016/07/09/simple-saturday-easy-way-to-format-your-select-query-results-aint-nuthin-but-a-g-thang/ Sat, 09 Jul 2016 18:17:36 +0000 http://www.paul-hayes.org/?p=20 Most of the time, when we do a query, we get a large jumble of results like so.

Select without \G

If you use the’\G’ at the very end of your query, your results are better formatted, like so.

Select with \G

A much better alternative when querying against tables with 10 or more fields, I think.

]]>