mysql에서 사용자 정의 함수를 만들 때 나는 에러


1. Not allowed to return a result set from a function SQL Statement


select할 때 값을 =가 아닌 into로 넣어준다.


예를 들면


select v_id = m_id from tblMember; => select m_id into v_id from tblMember;


2. ERROR 1418: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled


create 문 실행하기전에


SET GLOBAL log_bin_trust_function_creators = 1; 


를 실행해준다.

+ Recent posts