【发布时间】:2012-08-04 06:34:04
【问题描述】:
有趣的是,以下问题都没有帮助我:
How to organize country/state/city browsing in MVC
City Country State Database
Country/City/state validation
Country/State/City Database?
How to do a city/state/country code lookup based on zip/country input by the user?
City, State, Zip, Country list/script for sql server table
我查看了a question about database design,这在某种程度上很有帮助,但有些问题没有得到解答。我有 3 个表如下:
Country ( CountryID, CountryCode, CountryName )
Region ( RegionID, RegionCode, RegionName, CountryID )
City ( CityID, CityCode, CityName, RegionID )
我在用户表中有 CityID。问题是如果用户没有状态怎么办?在我的情况下,我应该如何使用下拉菜单?
在我的情况下,使用基于 ajax 的文本框是不可能的。
【问题讨论】:
标签: database geolocation