문제

Sorry for grammar mistakes. I want to create a currency table for my project which will use for adding currencies of different countries. This is my currency table but I'm confuse that this will good or not for project, so should I delete or add more columns in this table? Please help me.

currency

id | symbol | description | country | date_added | date_updated
도움이 되었습니까?

해결책

I believe you better should have two tables. One table for currency descriptions with fields id, symbol, description, country and other table related to this for daily currency rates with fields currency_id, rate, time_updated.

다른 팁

The question is if you really need the date_added. I think this is a information which is not really required.

If you want to update it regulary, I would implement a column "rate", which gives you the value in comparison of Euro or US$ as example. This way people can get a better impression how much 1 Unit of the currency is worth.

Otherwise this looks to be quite okay.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top