STRING_AGG 不是可识别的内置函数名称 [英] STRING_AGG is not a recognized built-in function name

查看:200
本文介绍了STRING_AGG 不是可识别的内置函数名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并安装了 SQL Server 2016.当我尝试使用 STRING_AGG 函数时,我收到了这个错误.这是我的代码:

I've downloaded and installed SQL Server 2016. When I attempted to use the STRING_AGG function I receive this error. Here is my code:

SELECT STRING_AGG(cast(FieldNumber AS VARCHAR(100)), ',')
FROM Fields

我已经安装了 SQL Server 2016 和 SP1.还有什么我需要做的吗.这是我尝试使用的功能.字符串聚合

I've installed SQL Server 2016 and SP1. Is there anything else I need to do. Here is the feature I am trying to use. String Agg

推荐答案

STRING_AGG 未在 SQL SERVER 2016 中引入.

SQL SERVER vNext中引入.在您提供的 MSDN 链接中,提到了本主题适用于:SQL Server(从 vNext 开始) 不是 SQL SERVER 2016.这是一个非常需要的功能,我希望他们在未来的任何版本中添加它

It is introduced in SQL SERVER vNext. In the MSDN link you have provided it is mentioned THIS TOPIC APPLIES TO : SQL Server (starting with vNext) not SQL SERVER 2016. It is a much needed feature I wish they add it in any future releases

如果你想知道什么是 vNext

In case you are wondering what is vNext

SQL Server vNext 代表了使 SQL Server 成为一个重要的一步支持选择开发语言、数据类型、本地和云端,以及跨操作系统SQL Server 对 Linux、基于 Linux 的 Docker 容器的强大功能,以及视窗.SQL Server vNext 还包括 SQL Server 2016 服务包中添加的功能

SQL Server vNext represents a major step towards making SQL Server a platform that enables choices of development languages, data types, on-premises and in the cloud, and across operating systems by bringing the power of SQL Server to Linux, Linux-based Docker containers, and Windows. SQL Server vNext also includes the features added in SQL Server 2016 service packs

有关详细信息,请查看此处

For more info check here

这篇关于STRING_AGG 不是可识别的内置函数名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆