在TSQL中解析JSON [英] Parse JSON in TSQL
本文介绍了在TSQL中解析JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在TSQL中解析JSON? 我的意思不是创建一个JSON字符串,我的意思是解析作为参数传入的json字符串.
Is it possible to parse JSON in TSQL? I dont mean to create a JSON string, i mean to parse a json string passed in as a parameter.
推荐答案
更新:从SQL Server 2016开始现在在TSQL中解析JSON可能.
从根本上来说,没有任何支持.您必须使用CLR.就这么简单,除非您有很大的受虐行为并且想要用SQL编写JSON解析器
Natively, there is no support. You'll have to use CLR. It is as simple as that, unless you have a huge masochistic streak and want to write a JSON parser in SQL
通常,人们要求从数据库中获取JSON输出,并且互联网上有一些示例.但是进入数据库?
Normally, folk ask for JSON output from the DB and there are examples on the internet. But into a DB?
这篇关于在TSQL中解析JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文