I want to remove the all part of characters after the specific character in mysql column. But i need that mentioned removable character. I have searched but everything the mentioned characters also removed.
For Example:
Tracding Company Pvt Ltd. - Welecome Home
Need output:
Tracding Company Pvt Ltd.
If i use Ltd. with substring_index then the ltd. also removed.
Please someone help with this.
CHARINDEXfunction is used inMSSQL, you can refer to this question for MySQL: https://stackoverflow.com/questions/17421448/query-to-remove-all-characters-after-last-comma-in-string