Created
September 9, 2014 07:30
-
-
Save betawax/269a0963218932c388b2 to your computer and use it in GitHub Desktop.
Extract a single value from MySQL in Shell
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
FOOBAR=$(mysql -u [user] [database] -p[password] --skip-column-names -se "SELECT foo FROM bar;") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment