有一个名为nvarchar(100)的列value,当用户插入此列时,我需要在触发器中检查以下代码:
if exists
(
select *
from inserted i
where isnumeric(value)=0
)
begin
rollback transaction
raiserror('when productType is numeric, You have to insert numeric character',18,1)
return
end
Run Code Online (Sandbox Code Playgroud)
但是在波斯语中插入的应用程序接口号中,总是如此isnumeric(value)=0.
例如,如果用户??在我的触发器值中插入接口,我需要显示为45.
到目前为止,我使用CAST,CONVERT并collate Persian_100_CI_AI但我无法得到任何结果.
谢谢.