Skip to content

Instantly share code, notes, and snippets.

View niotech's full-sized avatar
🏠
Working from home

Benny Christanto niotech

🏠
Working from home
  • Code-Latte
  • Indonesia
View GitHub Profile
@tmilewski
tmilewski / lowerword.sql
Created October 18, 2010 14:08
MySQL: Title Case
-- --------------------------------------------------------------------------------
-- Routine DDL
-- --------------------------------------------------------------------------------
DELIMITER $$
CREATE DEFINER=`root`@`localhost` FUNCTION `lowerword`( str VARCHAR(128), word VARCHAR(5) ) RETURNS varchar(128) CHARSET utf8
BEGIN
DECLARE i INT DEFAULT 1;
DECLARE loc INT;