在MS SQL Server 2016,已经支持JSON处理。
执行下面代码,将获取ms sql server对象类型以及其说明:
IF OBJECT_ID('tempdb.dbo.#json_type') IS NOT NULL DROP TABLE #json_type CREATE TABLE #json_type ( [type] TINYINT, [data_type] NVARCHAR(30) ) INSERT INTO #json_type ([type],[data_type]) VALUES (0,'null'), (1,'string'), (2,'int'), (3,'true/false'), (4,'array'), (5,'object') SELECT [type],[data_type] FROM #json_type