CREATE OR REPLACE FUNCTION get_name_length(name TEXT) RETURNS INT AS $$ SELECT CHAR_LENGTH(name); $$ LANGUAGE sql;