货币符号总是由三个字母组成,第一、三个字母用于识别国家,第三个字母则用于代表其货币名。
Currency symbols always have three letters, where the first two letters identify the name of the country and the third letter identifies the name of that country's currency.
它还有问题:Zipcode已足够识别国家与城市,因此,这些属性应当被迁移到city表(而不是状态表),但是该数据是静态的,因此我们可以不必理会。
It still has issues: Zipcode is enough to identify the city and state, so those attributes should migrate to a city table (instead of a state table), but that data is static, so we'll leave it alone.
您可以想象到通过类似的算法根据国家代码识别国际电话号码。
You can imagine a similar algorithm for an international number with a country code.
应用推荐