I am trying to do following thing:
i got a table which contains some words...all i need to do is whenever i see a word starting with 'R', i need to remove the starting 'R' and update it in the same table...
could anyone help me out here....thanks a lot in advance.......
I'm assuming by the title that you want to do it in the sql query. Here is one way to do it:
Select
Case WhenWordlike 'r%' Then right(Word, len(Word)-1) end
From Table1
Can you provide some sample data and what you are trying to update it to so we can get a better idea?
sql
No comments:
Post a Comment