在MS SQL Server 2016,已经支持JSON处理。

执行下面代码,将获取ms sql server对象类型以及其说明:

MS SQL JSON类型type

 

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
Source Code

相关文章:

  • 2022-12-23
  • 2021-05-30
  • 2022-02-22
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2021-09-28
  • 2022-12-23
  • 2021-06-07
  • 2021-06-08
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案