本文介绍了'MOD' 不是可识别的内置函数名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 SQL Server 2008R2
中使用 MOD
函数并遵循此 link 但仍然收到消息:
I wanted to use MOD
function in SQL Server 2008R2
and followed this link but still got the message:
'MOD' 不是可识别的内置函数名称.
DECLARE @m INT
SET @m = MOD(321,11)
SELECT @m
错误:
消息 195,第 15 级,状态 10,第 2 行
'MOD' 不是可识别的内置函数名称.
为什么我不能使用上面链接中的这个功能?
Why I can't use this function from the link above?
推荐答案
MOD
关键字只存在于DAX
语言(表格维度查询),不存在TSQL
The MOD
keyword only exists in the DAX
language (tabular dimensional queries), not TSQL
请改用 %
.
参考:取模
这篇关于'MOD' 不是可识别的内置函数名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!