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 Server 中的该字符串中提取中文名称?甚至可能吗?
感谢您的帮助。
假设中文总是在最后
DECLARE @orig nvarchar(100) = N'Screw with washer-玻璃板螺丝' SELECT REPLACE(@orig, REPLACE(CAST(@orig AS varchar(100)), '?', ''), '')