Skip to content

Instantly share code, notes, and snippets.

@nklatt
Created August 16, 2024 20:59
Show Gist options
  • Save nklatt/dac3b066a33ac117cb089aa7b2854914 to your computer and use it in GitHub Desktop.
Save nklatt/dac3b066a33ac117cb089aa7b2854914 to your computer and use it in GitHub Desktop.
Disable and re-enable MySQL only full group by programatically
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