結果 : sql function use temp table