Key/Value pairs in a database table

后端 未结 6 1387
轻奢々
轻奢々 2020-12-08 08:38

I need to design a Key/value table in my database and I\'m looking for guidance on the best way to do this. Basically, I need to be able to associate values to a dynamic se

6条回答
  •  清歌不尽
    2020-12-08 09:25

    An option that may be worth exploring is digesting the key using SHA1 or MD5 before inserting it into the table.

    That will allow you to get rid of the lookup table, but you will not be able to iterate through the keys cause it only goes one way.

提交回复
热议问题