Argument Type Auto-Conversion

Q

What Is Argument Type Auto-Conversion?

✍: FYIcenter.com

A

Argument Type Auto-Conversion is a process that automatically convert an actual argument into the type expected by the function.

For example, CHAR() expects a list of integers as arguments. If non-integers are provided, they will be automatically converted into integers. For example:

SELECT CHAR(70, '89', 73.1, 98.9, 1.01E2, '110th Street', 116, 101, 114);
  -- +-------------------------------------------------------------------+
  -- | CHAR(70, '89', 73.1, 98.9, 1.01E2, '110th Street', 116, 101, 114) |
  -- +-------------------------------------------------------------------+
  -- | FYIcenter                                                         |
  -- +-------------------------------------------------------------------+

 

Aggregate Functions

Variable Number of Arguments

Calling MySQL Built-in Functions

⇑⇑ MySQL Function References

2023-11-15, 1191🔥, 0💬