根據網上公布的全國省市縣代碼我們可以發現獲取省,市,縣有以下規律。1:獲取省份:select BH,MC from DIC_Area where BH like '__0000' order by BH 獲取省份的規律為:前兩位數不同后面四位是都為02.獲取市:select BH,MC from dic_area where BH like SUBSTRING(BH,1,2)+'__00' and BH <> SUBSTRING(BH,1,2)+'0000' order by BH //sql 取法select BH, MC from Read More
posted @ 2012-10-08 09:33
用未來思考現在
Views(4061)
Comments(15)
Diggs(1)

浙公網安備 33010602011771號