Home > Database > Mysql Tutorial > How to disable ONLY_FULL_GROUP_BY in MySQL?

How to disable ONLY_FULL_GROUP_BY in MySQL?

PHPz
Release: 2023-09-06 09:17:06
forward
1018 people have browsed it

How to disable ONLY_FULL_GROUP_BY in MySQL?

You can enable ONLY_FULL_GROUP_BY in MySQL as shown in the following query -

mysql> SET sql_mode = 'ONLY_FULL_GROUP_BY';
Query OK, 0 rows affected (0.01 sec)
Copy after login

As shown above, we can enable ONLY_FULL_GROUP_BY with the help of the SET command.

Disable ONLY_FULL_GROUP_BY with the help of the following query -

mysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Query OK, 0 rows affected (0.04 sec)
Copy after login

We have successfully disabled ONLY_FULL_GROUP_BY.

The above is the detailed content of How to disable ONLY_FULL_GROUP_BY in MySQL?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template