开发者

How can I remove duplicate numbers containing text?

I have a table that looks like this:

|StreetName NR| NR |
|Teststreet 34| 34 |

How can i delete only 开发者_开发问答the number in Streetname when it is the same in NR??


UPDATE
    Addresses
SET
    StreetName = LEFT( StreetName, LEN( StreetName ) - LEN ( StreetNo ) )
WHERE
    StreetName LIKE '%'+StreetNo
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜