-
-
Save yusiwen/8101a0d3902fc31893249668ebf0de93 to your computer and use it in GitHub Desktop.
[Suppressing Column Header in Query Output] #mysql
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
# To create output that contains only data values, suppress the column header row with the -N (or --skip-column-names) option | |
mysql -N -e "SELECT arms FROM limbs" cookbook | summarize | |
# -N and --skip-column-names were introduced in MySQL 3.22.20 | |
# For older versions, you can achieve the same effect by specifying the “silent” option (-s or --silent) twice: | |
% mysql -ss -e "SELECT arms FROM limbs" cookbook | summarize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment