結果 : sql declare variable inside function