I need to fetch a scalar value of the MySQL VARIABLE “version”. Currently running this:
SHOW VARIABLES WHERE Variable_name="version"
Is giving me a table like:
Variable_name Value
------------- -----------
version 5.5.28-log
How do I just get the Value cell?
Okay, I found out how: