drop table if exists `provinces`;
create table `provinces` (
`id` int(11) not null auto_increment,
`provinceid` varchar(20) not null,
`province` varchar(50) not null,
primary key (`id`)
) engine=myisam default charset=utf8 comment='省份資訊表' auto_increment=35 ;
insert into provinces(id,provinceid,province) values(1,'110000','北京市');
insert into provinces(id,provinceid,province) values(2,'120000','天津市');
insert into provinces(id,provinceid,province) values(3,'130000','河北省');
insert into provinces(id,provinceid,province) values(4,'140000','山西省');
insert into provinces(id,provinceid,province) values(5,'150000','內蒙古自治區');
insert into provinces(id,provinceid,province) values(6,'210000','遼寧省');
insert into provinces(id,provinceid,province) values(7,'220000','吉林省');
insert into provinces(id,provinceid,province) values(8,'230000','黑龍江省');
insert into provinces(id,provinceid,province) values(9,'310000','上海市');
insert into provinces(id,provinceid,province) values(10,'320000','江蘇省');
insert into provinces(id,provinceid,province) values(11,'330000','浙江省');
insert into provinces(id,provinceid,province) values(12,'340000','安徽省');
insert into provinces(id,provinceid,province) values(13,'350000','福建省');
insert into provinces(id,provinceid,province) values(14,'360000','江西省');
insert into provinces(id,provinceid,province) values(15,'370000','山東省');
insert into provinces(id,provinceid,province) values(16,'410000','河南省');
insert into provinces(id,provinceid,province) values(17,'420000','湖北省');
insert into provinces(id,provinceid,province) values(18,'430000','湖南省');
insert into provinces(id,provinceid,province) values(19,'440000','廣東省');
insert into provinces(id,provinceid,province) values(20,'450000','廣西壯族自治區');
insert into provinces(id,provinceid,province) values(21,'460000','海南省');
insert into provinces(id,provinceid,province) values(22,'500000','重慶市');
insert into provinces(id,provinceid,province) values(23,'510000','四川省');
insert into provinces(id,provinceid,province) values(24,'520000','貴州省');
insert into provinces(id,provinceid,province) values(25,'530000','雲南省');
insert into provinces(id,provinceid,province) values(26,'540000','**自治區');
insert into provinces(id,provinceid,province) values(27,'610000','陝西省');
insert into provinces(id,provinceid,province) values(28,'620000','甘肅省');
insert into provinces(id,provinceid,province) values(29,'630000','青海省');
insert into provinces(id,provinceid,province) values(30,'640000','寧夏回族自治區');
insert into provinces(id,provinceid,province) values(31,'650000','新疆維吾爾自治區');
insert into provinces(id,provinceid,province) values(32,'710000','台灣省');
insert into provinces(id,provinceid,province) values(33,'810000','香港特別行政區');
insert into provinces(id,provinceid,province) values(34,'820000','澳門特別行政區');
省市區陣列
先找到檔案對應的路徑 nsstring path users dlios desktop oc5 省市區陣列 oc5 省市區陣列 area.txt 通過路徑產生字串,內容就是txt文字裡的內容 nsstring str nsstring stringwithcontentsoffile path e...
OC 省市區陣列
省市區陣列 先找到檔案對應的路徑 nsstring path users dlios desktop 筆記 oc筆記 oc5 陣列省市區 oc5 陣列省市區 area.txt 通過路徑產生字串,內容就是txt文字的內容 nsstring str nsstring stringwithcontents...
OC NSDictionary 省市區 練習
import int main int argc,const char argv 判斷市字典是否存在 if city 擷取區域字串的前面的兩個空格 nsstring otherstring string substringfromindex 4 分割 字串 nsarray array otherst...