Skip to content

Instantly share code, notes, and snippets.

@lianglee
Created August 2, 2017 19:42
Show Gist options
  • Select an option

  • Save lianglee/ecb9b619beaf76d99393b2b5fb10304b to your computer and use it in GitHub Desktop.

Select an option

Save lianglee/ecb9b619beaf76d99393b2b5fb10304b to your computer and use it in GitHub Desktop.
SELECT list is not in GROUP BY
mysql> set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
mysql> set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment