結果 : sql function to extract substring