結果 : sql function to get substring from string