Home > Database > Mysql Tutorial > How can we change the default rules used by the parser to parse built-in function names?

How can we change the default rules used by the parser to parse built-in function names?

WBOY
Release: 2023-08-30 20:53:02
forward
1127 people have browsed it

How can we change the default rules used by the parser to parse built-in function names?

#The parser's default rules for parsing built-in function names can be changed by enabling IGNORE_SPACE SQL mode. When we enable this mode, the parser relaxes the requirement that there is no space between the function name and the following parenthesis. For example, with IGNORE_SPACE SQL mode enabled, the following two function calls are legal -

Select SUM(Salary) from employee;
Select SUM (Salary) from employee;
Copy after login

However, in this case, the parser treats the function name as a reserved word. This means that spaces after the name no longer represent identifiers.

The above is the detailed content of How can we change the default rules used by the parser to parse built-in function names?. 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