简体   繁体   English

将JSON文件插入SQL Server数据库

[英]Insert JSON file into SQL Server database

Hi how can I insert a JSON file into a Cell in Database ? 嗨,如何将JSON文件插入Database的单元格中? I don't want to store the File path but want to store the whole Content of the JSON file into the field. 我不想存储File路径,但想将JSON文件的整个Content存储到该字段中。

What can I do? 我能做什么?

JSON data stored/transferred in as a string. JSON数据以字符串形式存储/传输。 You can store it in a normal NVARCHAR column. 您可以将其存储在普通的NVARCHAR列中。

json文本有多大?,取决于内容是否不大,应该有一个varchar字段,或者如果有很多json文本,则应该有一个CLOB,json只是text,所以您只有一些东西可以读取文件的内容,也许一些transact-sql脚本,并将其插入表中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM