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?
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.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks