[MySQL] 함수 생성, function
작성일 12-09-26 16:48
페이지 정보
작성자서방님 조회 846회 댓글 0건본문
delimiter $$
DROP FUNCTION IF EXISTS string_print$$
CREATE FUNCTION string_print( str VARCHAR(20) ) RETURNS VARCHAR(20)
BEGIN
DECLARE copy_str VARCHAR(20);
SET copy_str = str;
RETURN copy_str;
END $$
delimiter ;
-- 실행
SELECT string_print('Hello world');
-- 함수 조회
show function status
댓글목록
등록된 댓글이 없습니다.
