Created
August 16, 2024 20:59
-
-
Save nklatt/dac3b066a33ac117cb089aa7b2854914 to your computer and use it in GitHub Desktop.
Disable and re-enable MySQL only full group by programatically
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
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); | |
# ... | |
SET sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment