Showing posts with label stored procedure. Show all posts
Showing posts with label stored procedure. Show all posts

Wednesday, April 20, 2011

Some Mysql stored procedure example

DELIMITER $$

CREATE DEFINER=`root`@`%` FUNCTION `titlecase`(input TEXT) RETURNS text CHARSET latin1
BEGIN
DECLARE pointercari INT;
DECLARE pointerlama INT;
DECLARE n INT;
DECLARE output TEXT;
SET n := LENGTH(input);