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.
我正在尝试替换我的 SQL 注释(文本)中的空格。
select REPLACE(cast(notes as varchar(8000)), ' ', '.') as notes from nTable where CaseID = '1449686'
结果:
**** Topic:.Pre-sales.support I.second.the.motion!
为什么不是所有的空间都被替换?(如果我在替换中放了双空格-什么都没有被替换)..还能是什么?
CaseID 是 varchar 类型吗?试试不带单引号:
select REPLACE(cast(notes as varchar(8000)), ' ', '.') as notes from nTable where CaseID = 1449686
标签