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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -