Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道您将如何删除列中的退格键及其字段?假设我有一张看起来像这样的桌子。我想删除退格键和 ':' 但保留数据?
信息
你好 :Something :Here :Again
CHAR(8)是退格字符。
CHAR(8)
用于REPLACE()查找和替换它。
REPLACE()
常用控制字符:
Backspace CHAR(8) Tab CHAR(9) Line feed CHAR(10) Carriage return CHAR(13)
退格还是换行(CR + LF)?
尝试嵌套 REPLACE 函数
UPDATE dbo.table1 set Information=REPLACE(REPLACE(REPLACE(Information,CHAR(13),''),CHAR(10),''),':','')