标签: mysql
我有一个看起来像这样的表:
|StreetName NR| NR | |Teststreet 34| 34 |
如果在NR中它是相同的,我怎么能只删除Streetname中的数字?
答案 0 :(得分:2)
UPDATE Addresses SET StreetName = LEFT( StreetName, LEN( StreetName ) - LEN ( StreetNo ) ) WHERE StreetName LIKE '%'+StreetNo