[MySQL] 함수 생성, function
페이지 정보
작성자 서방님 댓글 0건 조회 367회 작성일 12-09-26 16:48본문
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
댓글목록
등록된 댓글이 없습니다.