Hi friends,
I want know that , How to get names having '_' at the and of names in the tables. and remove the '_' from the names having '_' at the ends of names in the table. like deepak_ to deepak. ?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Nov 19, 2011, 1:30 AM
Try this...
For knowing (_) in records in a table.
SELECT sname FROM student WHERE (sname LIKE '%|_%%' ESCAPE '|')
For removing (_) in records in a table.
UPDATE student SET sname = REPLACE(sname, '_', '')
Thanks
Deepak DwijPosted Nov 19, 2011, 4:59 AM
This is the solution i m looking for.
Thanks