This article shows how to determine the correct example in MySQL: The correct option .
It is included in case of rotting links:
DROP FUNCTION IF EXISTS proper; SET GLOBAL log_bin_trust_function_creators=TRUE; DELIMITER | CREATE FUNCTION proper( str VARCHAR(128) ) RETURNS VARCHAR(128) BEGIN DECLARE c CHAR(1); DECLARE s VARCHAR(128); DECLARE i INT DEFAULT 1; DECLARE bool INT DEFAULT 1; DECLARE punct CHAR(18) DEFAULT ' ()[]{},.-_\' !@ ;:?/';
Mark baker
source share