Using a Single Row configuration table in SQL Server database. Bad idea?

后端 未结 12 1941
终归单人心
终归单人心 2020-12-12 09:19

In developing a shopping cart application I\'ve found that I needed to save settings and configurations based on the administrator\'s preferences and requirements. This info

12条回答
  •  离开以前
    2020-12-12 09:56

    Have a key column as varchar and a value column as JSON. 1 is numeric whereas "1" is a string. true and false are both boolean. You can have objects as well.

提交回复
热议问题