简体   繁体   中英

Insert JSON file into SQL Server database

Hi how can I insert a JSON file into a Cell in Database ? I don't want to store the File path but want to store the whole Content of the JSON file into the field.

What can I do?

JSON data stored/transferred in as a string. You can store it in a normal NVARCHAR column.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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