0

我试图建立一个使用电子货币的网站。例如,WebMoney 货币有自己的一组参数,如 wmid 等。而 uKash 有自己的参数,还有一系列其他参数,如电子邮件等。现在不清楚引入了多少货币站点管理员,而未知参数 我心想,银行币应该构建在一个动态的表中,用户可以设置参数。知道我不知道如何实现吗?

4

1 回答 1

1

Tables can't have dynamic columns

You can add a table for each form of web currency that contains the parameters those currencies require = ie: A WebMoney table, a uKash table, etc.

Or you can add an XML column to your main table that contains the variable data information for the specific web currency in question. eg:

<webcurrency type="webmoney">
    <wmid>1</wmid>
<webmoney>

and

<webcurrency type="uKash">
    <email>bob@ukash.com</email>
<webmoney>

Given your intention to allow for future currencies, perhaps the second choice is preferable.

于 2012-09-04T09:12:22.050 回答