Storing JSON in an msSQL database?

前端 未结 7 794
难免孤独
难免孤独 2020-12-28 15:38

I\'m developing a form generator, and wondering if it would be bad mojo to store JSON in an SQL database?

I want to keep my database & tables simple, so I was go

7条回答
  •  灰色年华
    2020-12-28 16:11

    I wouldn't recommend it.

    If you ever want to do any reporting or query based on these values in the future it's going to make your life a lot harder than having a few extra tables/columns.

    Why are you avoiding making new tables? I say if your application requires them go ahead and add them in... Also if someone has to go through your code/db later it's probably going to be harder for them to figure out what you had going on (depending on what kind of documentation you have).

提交回复
热议问题