In MariaDB, TRIM_ORACLE()
is a synonym for the Oracle mode version of the TRIM()
function.
TRIM_ORACLE()
is available in all modes, so it saves you from having to switch to Oracle mode, which is what you’d need to do if you wanted the TRIM()
function to behave like Oracle’s TRIM()
function.
The difference is in how each function treats empty strings. Oracle returns null
whereas MariaDB returns an empty string.