Home  >  Article  >  Database  >  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
WBOYforward
2023-08-30 20:53:021054browse

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;

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete