結果 : sql substring upto a certain character