After connecting to database i wanted to (from my application) alter some tables and add field type JSON, but the json type is available since 5.7.8
is there elegant way to check mysql version is not sufficient?
Printable View
After connecting to database i wanted to (from my application) alter some tables and add field type JSON, but the json type is available since 5.7.8
is there elegant way to check mysql version is not sufficient?
A SELECT VERSION() SQL statement should do it. See this.