mysql> SHOW create FUNCTION kode_level\G;
*************************** 1. row ***************************
Function: kode_level
sql_mode: NO_AUTO_VALUE_ON_ZERO
Create Function: CREATE DEFINER=`lakip2016`@`localhost` FUNCTION `kode_level`(`pkode` VARCHAR(50), `pdelimiter` CHAR, `pLevel` INT) RETURNS varchar(255) CHARSET latin1
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE hasil VARCHAR(255);
SET hasil = SUBSTRING_INDEX(pkode, '.',pLevel);
RETURN hasil;
END
character_set_client: utf8
collation_connection: utf8_general_ci
Database Collation: latin1_swedish_ci
1 row in set (0.00 sec)
*************************** 1. row ***************************
Function: kode_level
sql_mode: NO_AUTO_VALUE_ON_ZERO
Create Function: CREATE DEFINER=`lakip2016`@`localhost` FUNCTION `kode_level`(`pkode` VARCHAR(50), `pdelimiter` CHAR, `pLevel` INT) RETURNS varchar(255) CHARSET latin1
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE hasil VARCHAR(255);
SET hasil = SUBSTRING_INDEX(pkode, '.',pLevel);
RETURN hasil;
END
character_set_client: utf8
collation_connection: utf8_general_ci
Database Collation: latin1_swedish_ci
1 row in set (0.00 sec)
Komentar
Posting Komentar