error handling - sql select string coming before space dash space -


select string coming before space dash space

say table 1

id | name 1 | poo - sr 2 | s-h-r - sr 3 | sdr - mj 4 | srk - kl

i want like

id | name 1 | poo 2 | s-h-r 3 | sdr 4 | srk

use replace function in sql? example :select replace('abcdefghicde','cde','xxx');


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -