优雅的数据存储方式 [英] Elegant way to store data

查看:62
本文介绍了优雅的数据存储方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在字母上附加从A到Z的数字,频率和音符.
我可以有一些变化形式,即今天A = 1,10hz,明天C = 10,100hz,F.
我可以哪种方式存储数据?如果是表,请说MS SQL Server,这样每个变体
将有26条记录-字母数量.有没有更优雅的方法?

I want to attach to each letter from A to Z number, frequency and musical note.
I can have some variants, i.e today A = 1,10hz,C tomorrow A = 10,100hz,F.
Which way I can store data? If it is table, say MS SQL Server so every variant
Will have 26 records – number of letters. Is there more elegant way?

推荐答案

听起来像数据库表是一个很好的解决方案,如果您希望数据持久化的话.您可以使用任何一种,例如MySQL.
Sounds like a database table is a good solution if you want the data to persist. You can use any, like MySQL.


我在考虑TreeView.字母是一个节点,它的参数是一个子元素
节点.那我怎么存储呢?
I was thinking about TreeView. Letter is a node and it''s parameters is a child
nodes. How can i store it then?


这篇关于优雅的数据存储方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆