結果 : get string before a character sql