CREATE TABLE TImpMember ( FName VARCHAR(50), FGender INT, FMobile VARCHAR(20), FMemo VARCHAR(1000), FBalance DECIMAL(18,6), FMemNo VARCHAR(50), FCardTypeId BIGINT ) INSERT TImpMember(FName,FGender,FMobile,FMemo,FBalance) SELECT '贾伟','1','15534455550','','742' UNION ALL SELECT '梁丽','0','13452378953','','28' UNION ALL SELECT '刘丽英','0','13935731889','','103' UNION ALL SELECT '高强','1','18636833994','','158' UNION ALL SELECT '李婷','0','15698320000','','4' UNION ALL SELECT '杜','0','13934048986','','113' UNION ALL SELECT '','0','18203515858','','50' UNION ALL SELECT '高景旗','0','15935119555','','2137' UNION ALL SELECT '史','0','18634939207','','265' UNION ALL SELECT '杨佩琪','0','13466817775','','651' UNION ALL SELECT '张超','0','18635839233','','266' UNION ALL SELECT '桃','0','18234016660','','3' UNION ALL SELECT '余泽奇','1','13903402577','','509' UNION ALL SELECT '陈炎康','1','18640765977','','540' UNION ALL SELECT '杨向方','1','13834590159','','68' UNION ALL SELECT '柴进','0','18603516091','','51' UNION ALL SELECT '刘金','1','13880331377','','92' UNION ALL SELECT '牛','0','18635105855','','166' UNION ALL SELECT '王娟','0','15834154166','','92' UNION ALL SELECT '','1','13753102992','','11' UNION ALL SELECT '梁志成','1','13333407070','','11' UNION ALL SELECT '赵素娟','0','15834136251','','151' UNION ALL SELECT '张婷','0','18735121729','','7' UNION ALL SELECT '丽玲','0','13835036088','','118' UNION ALL SELECT '岳鑫','0','13834558112','','229' UNION ALL SELECT '冀雅洁','0','13935139957','','744' UNION ALL SELECT '何','0','18603511508','','348' UNION ALL SELECT '淑敏','0','18835136737','','20' UNION ALL SELECT '陈','0','13333433092','','108' UNION ALL SELECT '李超','1','18735842080','','533' UNION ALL SELECT '艾美美','0','13935168619','','177' UNION ALL SELECT '任于坚','1','18935166541','','321' UNION ALL SELECT '王兴伟','1','13111122241','','105' UNION ALL SELECT '郝焕彤','0','319','','4' UNION ALL SELECT '宋玉光','0','18635799777','','183' UNION ALL SELECT '周倩茹','0','13834118502','','668' UNION ALL SELECT '赵冰','0','18635584779','','118' UNION ALL SELECT '党惠萍','0','18698331095','','529' UNION ALL SELECT '屈玉琴','0','15536600803','','298' UNION ALL SELECT '霍伟','1','15234111170','','202' UNION ALL SELECT '史叶玲','0','15935100333','','58' UNION ALL SELECT '尹','0','18235191997','','272' UNION ALL SELECT '胡','0','18636918886','','538' UNION ALL SELECT '赵建业','1','15525429999','','19' UNION ALL SELECT '李婷','0','15034189597','','99' UNION ALL SELECT '余','0','13593166979','','273' UNION ALL SELECT '付芝兰','0','13306336993','','778' UNION ALL SELECT '闫霞','0','13934138031','','452' UNION ALL SELECT '闫','0','18735380888','','27' UNION ALL SELECT '崔阳','1','13403450042','','71' UNION ALL SELECT '裴','1','15135130890','18635113711','375' UNION ALL SELECT '贺三云','0','13935840877','','104' UNION ALL SELECT '张君艳','0','13383405599','','129' UNION ALL SELECT '邢','0','13934133073','','183' UNION ALL SELECT '付乐','0','18636942977','','40' UNION ALL SELECT '','1','18611045086','','3' UNION ALL SELECT '段','0','13835193625','','622' UNION ALL SELECT '王垚垚','0','15834101992','','37' UNION ALL SELECT '焦曼','0','18503548815','18503548815','68' UNION ALL SELECT '吴荣梅','0','13835161438','','32' UNION ALL SELECT '刘刚','1','13934040573','','38' UNION ALL SELECT '任婷婷','0','15034176669','','174' UNION ALL SELECT '王一郎','1','13834671404','','87' UNION ALL SELECT '程','1','18601231569','','61' UNION ALL SELECT '李','1','13485332220','','29' UNION ALL SELECT '武鑫','1','13099070999','','376' UNION ALL SELECT '崔国庆','1','18535138800','','86' UNION ALL SELECT '孙斗云','0','15110392335','','43' UNION ALL SELECT '郝振云','0','13503517300','','649' UNION ALL SELECT '韩燕','0','18027685678','','1' UNION ALL SELECT '薛城','1','18613536699','','38' UNION ALL SELECT '白璐','1','15698569111','','157' UNION ALL SELECT '张','1','13823111090','','92' UNION ALL SELECT '韩佳琪','0','15878785999','','452' UNION ALL SELECT '王倩倩','0','18203580158','','159' UNION ALL SELECT '刘','0','18603688517','','182' UNION ALL SELECT '芦丽娜','0','18636847475','','20' UNION ALL SELECT '','1','15810555051','','320' UNION ALL SELECT '赵蕾','0','13803415705','','296' UNION ALL SELECT '郝娟娟','0','13934640259','','559' UNION ALL SELECT '秦红梅','0','13466878317','','363' UNION ALL SELECT '王博','1','18803517776','','86' UNION ALL SELECT '谷','0','18636033344','','824' UNION ALL SELECT '曹艳','0','15034125666','','770' UNION ALL SELECT '李','0','15296615531','','166' UNION ALL SELECT '郭雅婷','0','15135028203','','34' UNION ALL SELECT '','0','13313143088','','204' UNION ALL SELECT '王霞','0','13935031002','','363' UNION ALL SELECT '高','0','樊','','897' UNION ALL SELECT '李','1','13203518777','','943' UNION ALL SELECT '陈向勇','1','15364781255','','67' UNION ALL SELECT '张','1','15340632888','','141' UNION ALL SELECT '张志伟','1','13363517744','','38' UNION ALL SELECT '李','0','13700548202','','56' UNION ALL SELECT '田蕾','0','15333512444','','19' UNION ALL SELECT '俊','0','13503502980','','572' UNION ALL SELECT '王','0','13834581136','','280' UNION ALL SELECT '余','0','18734313666','','538' UNION ALL SELECT '王','1','15536316111','','161' UNION ALL SELECT '李','1','13623471868','','262' UNION ALL SELECT '李云','1','18502138989','','412' UNION ALL SELECT '刘','0','13835100966','','489' UNION ALL SELECT '武','0','13623611079','','328' UNION ALL SELECT '李越','0','6255','','69' UNION ALL SELECT '施','0','18935120844','','0' UNION ALL SELECT '施','0','15803406345','','61' UNION ALL SELECT '高雷梦','0','14799917777','','108' UNION ALL SELECT '董国良','0','15234011122','','281' UNION ALL SELECT '陈曼','0','13753190016','','917' UNION ALL SELECT '','0','18035052777','','950' UNION ALL SELECT '金','0','00000006395','','122' UNION ALL SELECT '赵彤','0','15119099999','','425' UNION ALL SELECT '高','0','18636190788','','714' UNION ALL SELECT '杜鹃','0','13934641213','','741' UNION ALL SELECT '王','0','18636675252','','709' UNION ALL SELECT '冀','0','18335037000','','388' UNION ALL SELECT '赵','1','13453448555','','83' UNION ALL SELECT '花蕾','0','15035173609','','438' UNION ALL SELECT '刘希扬','0','13485357707','','72' UNION ALL SELECT '梁','1','18636091115','','310' UNION ALL SELECT '任','1','15340696002','','140' UNION ALL SELECT '吕','0','13503511631','','1000' UNION ALL SELECT '邱茜','0','18679305577','','129' UNION ALL SELECT '杜菲','0','18734878777','','158' UNION ALL SELECT '吴','1','18979302077','','71' UNION ALL SELECT '娜','0','13834611113','','462' UNION ALL SELECT '冯丽丽','0','15513062111','','266' UNION ALL SELECT '李丽','0','18649585678','','648' UNION ALL SELECT '郑','1','13909254321','','653' UNION ALL SELECT '磊','1','18835186688','','493' UNION ALL SELECT '董佳文','0','13503540947','','493' UNION ALL SELECT '刘佳','0','15536666622','','25' UNION ALL SELECT '刘敏','0','18235319900','','363' UNION ALL SELECT '','1','15834063312','','363' UNION ALL SELECT '关玲','0','15034410111','','136' UNION ALL SELECT '赵','1','13903549224','','453' UNION ALL SELECT '王','0','15110358080','','14' UNION ALL SELECT '成聪','0','15383588321','','341' UNION ALL SELECT '张金亮','1','15534093111','','685' UNION ALL SELECT '吴','0','18611277926','','230' UNION ALL SELECT '马','1','18735398113','','140' UNION ALL SELECT '','0','18735100922','','3' UNION ALL SELECT '彭','1','13994275398','','655' UNION ALL SELECT '','0','13935111338','','770' UNION ALL SELECT '','0','18603466565','','741' UNION ALL SELECT '','0','13613479869','','224' UNION ALL SELECT '张蕊','0','13546313577','','831' UNION ALL SELECT '刘','0','13100000675','','493' UNION ALL SELECT '张娜','0','18603468377','','208' UNION ALL SELECT '赵琴','0','13603532551','.','831' UNION ALL SELECT '冯丽华','0','15835805222','','327' UNION ALL SELECT '畅智言','0','18035700126','','248' --北美3千85折卡 INSERT TImpMember(FName,FGender,FMobile,FBalance,fcARDtYPEiD) SELECT '宋晋燕','0','15333616765','224','7092377983779864576' UNION ALL SELECT '王清秀','0','13603556966','2411','7092377983779864576' UNION ALL SELECT '李子君','0','13111293333','139','7092377983779864576' UNION ALL SELECT '任雁飞','0','15235366330','175','7092377983779864576' UNION ALL SELECT '宁乐','0','15110413355','125','7092377983779864576' UNION ALL SELECT '杨洋','0','15003511489','13','7092377983779864576' UNION ALL SELECT '李丽','0','13835066555','60','7092377983779864576' UNION ALL SELECT '盖优','0','18235150979','22','7092377983779864576' UNION ALL SELECT '','0','18235191997','28','7092377983779864576' UNION ALL SELECT '付','0','13643692789','189','7092377983779864576' UNION ALL SELECT '薛云','0','18503515921','367','7092377983779864576' UNION ALL SELECT '李茜','0','18636103779','1112','7092377983779864576' UNION ALL SELECT '王琳','0','18636886005','1063','7092377983779864576' UNION ALL SELECT '徐素丽','0','13603555192','288','7092377983779864576' UNION ALL SELECT '海英','0','13603510666','1424','7092377983779864576' UNION ALL SELECT '王建','1','13734003456','446','7092377983779864576' UNION ALL SELECT '王清平','0','13934058281','90','7092377983779864576' UNION ALL SELECT '陈燕燕','0','18503517618','188','7092377983779864576' UNION ALL SELECT '姜彩虹','0','13903547008','686','7092377983779864576' UNION ALL SELECT '白璐','0','13068000760','52','7092377983779864576' UNION ALL SELECT '李','0','13453158240','1503','7092377983779864576' UNION ALL SELECT '樊','0','15034194277','484','7092377983779864576' UNION ALL SELECT '胡','0','13700540610','170','7092377983779864576' UNION ALL SELECT '周','0','18636653396','223','7092377983779864576' UNION ALL SELECT '代天骄','0','13623667737','218','7092377983779864576' UNION ALL SELECT '王波','0','18636162866','110','7092377983779864576' UNION ALL SELECT '','0','18503512277','18','7092377983779864576' UNION ALL SELECT '苗瑞','0','13700581686','1962','7092377983779864576' UNION ALL SELECT '崔婉桐','0','18636661762','484','7092377983779864576' UNION ALL SELECT '魏华','0','15104088754','1928','7092377983779864576' UNION ALL SELECT '朱婷','0','13834567437','291','7092377983779864576' UNION ALL SELECT '胡彩萍','0','13903431278','102','7092377983779864576' UNION ALL SELECT '武雅丽','0','18636680044','106','7092377983779864576' UNION ALL SELECT '赫','0','18601316171','26','7092377983779864576' UNION ALL SELECT '赵静','0','13834661576','1567','7092377983779864576' UNION ALL SELECT '乔','0','13513513259','65','7092377983779864576' UNION ALL SELECT '孙英俊','0','18612394367','4','7092377983779864576' UNION ALL SELECT '曲','0','18035161360','691','7092377983779864576' UNION ALL SELECT '','0','13834584087','23','7092377983779864576' UNION ALL SELECT '王兰','0','15386838772','474','7092377983779864576' UNION ALL SELECT '云奇志','0','13283518888','16','7092377983779864576' UNION ALL SELECT '奥','0','18688568585','12','7092377983779864576' UNION ALL SELECT '胡慧','0','18636918886','251','7092377983779864576' UNION ALL SELECT '徐慧','0','13934655111','3','7092377983779864576' UNION ALL SELECT '王松娜','0','18636109898','1593','7092377983779864576' UNION ALL SELECT '李慧','0','15386889671','490','7092377983779864576' UNION ALL SELECT '白晶','0','13191075678','136','7092377983779864576' UNION ALL SELECT '梁','0','13754820307','937','7092377983779864576' UNION ALL SELECT '董','0','13994292541','23','7092377983779864576' UNION ALL SELECT '朱丽','0','13994224249','1682','7092377983779864576' UNION ALL SELECT '王超','0','13834230160','1387','7092377983779864576' UNION ALL SELECT '曹慧琴','0','13485303032','147','7092377983779864576' UNION ALL SELECT '张斌','0','15635012222','3','7092377983779864576' UNION ALL SELECT '张玉琴','0','18135101144','1123','7092377983779864576' UNION ALL SELECT '宋丽敏','0','13934558557','34','7092377983779864576' UNION ALL SELECT '安逸','0','15834060317','174','7092377983779864576' UNION ALL SELECT '钱','0','15536901999','650','7092377983779864576' UNION ALL SELECT '张','0','15835886081','1089','7092377983779864576' UNION ALL SELECT '陈艳','0','18602740191','54','7092377983779864576' UNION ALL SELECT '李芳芳','0','18635729527','20','7092377983779864576' UNION ALL SELECT '范红春','0','13546119866','228','7092377983779864576' UNION ALL SELECT '杨静','0','13613468880','202','7092377983779864576' UNION ALL SELECT '张华','0','18634351223','975','7092377983779864576' UNION ALL SELECT '张蕾','0','13623460900','452','7092377983779864576' UNION ALL SELECT '耿翔','0','18635156855','592','7092377983779864576' UNION ALL SELECT '曹','0','18334598833','438','7092377983779864576' UNION ALL SELECT '郭丽华','0','13811308834','65','7092377983779864576' UNION ALL SELECT '安','0','18636123400','402','7092377983779864576' UNION ALL SELECT '温','0','13453191588','1296','7092377983779864576' UNION ALL SELECT '陈鹰','0','15728768886','864','7092377983779864576' UNION ALL SELECT '于心涛','0','13753153242','597','7092377983779864576' UNION ALL SELECT '贺三云','0','13935840877','1031','7092377983779864576' UNION ALL SELECT '孟晓越','0','13903418418','842','7092377983779864576' UNION ALL SELECT '任景丹','0','18634480989','27','7092377983779864576' UNION ALL SELECT '周晓芳','0','13803494555','949','7092377983779864576' UNION ALL SELECT '录','0','15234056868','1752','7092377983779864576' UNION ALL SELECT '赵雪梅','0','13509704472','54','7092377983779864576' UNION ALL SELECT '英','0','13603585888','629','7092377983779864576' UNION ALL SELECT '刘','0','15035113555','3','7092377983779864576' UNION ALL SELECT '张瑾','0','15203516590','1446','7092377983779864576' UNION ALL SELECT '杨','0','18636129996','447','7092377983779864576' UNION ALL SELECT '刘国强','0','13403464227','116','7092377983779864576' UNION ALL SELECT '王艳','0','15935887969','646','7092377983779864576' UNION ALL SELECT '冯娟','0','15003515121','70','7092377983779864576' UNION ALL SELECT '段','0','13635836888','63','7092377983779864576' UNION ALL SELECT '程','0','17696037373','449','7092377983779864576' UNION ALL SELECT '王安娜','0','13803440777','87','7092377983779864576' UNION ALL SELECT '张媛睿','0','15503609991','1311','7092377983779864576' UNION ALL SELECT '张雅丽','0','18535126255','1745','7092377983779864576' UNION ALL SELECT '史','0','15835120873','1590','7092377983779864576' UNION ALL SELECT '刘','0','15135168036','55','7092377983779864576' UNION ALL SELECT '李','0','13593400063','70','7092377983779864576' UNION ALL SELECT '任欣茹','0','13633444322','806','7092377983779864576' UNION ALL SELECT '王','0','13935116258','125','7092377983779864576' UNION ALL SELECT '','0','13994096099','350','7092377983779864576' UNION ALL SELECT '李','0','15034068866','956','7092377983779864576' UNION ALL SELECT '周','0','18605058598','623','7092377983779864576' UNION ALL SELECT '郭','0','15834175597','155','7092377983779864576' UNION ALL SELECT '李芳菲','0','13485375352','9','7092377983779864576' UNION ALL SELECT '耿晋芳','0','13403416864','1573','7092377983779864576' UNION ALL SELECT '胡超','0','18636991450','1381','7092377983779864576' UNION ALL SELECT '许力文','1','15803516311','2237','7092377983779864576' UNION ALL SELECT '李桦','0','13834691983','284','7092377983779864576' UNION ALL SELECT '张婧','0','13803519487','6','7092377983779864576' UNION ALL SELECT '杨丽君','0','00000000439','722','7092377983779864576' UNION ALL SELECT '何言','0','18177760111','93','7092377983779864576' UNION ALL SELECT '梁晓丽','0','13485378953','174','7092377983779864576' UNION ALL SELECT '先生','1','189351558133','2520','7092377983779864576' UNION ALL SELECT '裴芳','0','13546666669','1533','7092377983779864576' UNION ALL SELECT '','0','13703581396','1372','7092377983779864576' UNION ALL SELECT '','0','18234106979','575','7092377983779864576' UNION ALL SELECT '王芳','0','13934227982','900','7092377983779864576' UNION ALL SELECT '冯','0','15135133901','153','7092377983779864576' UNION ALL SELECT '尉','0','13753131390','284','7092377983779864576' UNION ALL SELECT '','1','18503517474','380','7092377983779864576' UNION ALL SELECT '吴琼','0','18635456579','572','7092377983779864576' UNION ALL SELECT '赵莎','0','18635106066','1142','7092377983779864576' UNION ALL SELECT '王云飞','0','13834669777','407','7092377983779864576' UNION ALL SELECT '常利','0','13994264362','864','7092377983779864576' UNION ALL SELECT '闫聪','0','18603480505','822','7092377983779864576' UNION ALL SELECT '高0士','0','15110303333','986','7092377983779864576' UNION ALL SELECT '王妮','0','15080115666','280','7092377983779864576' UNION ALL SELECT '李艳萍','0','17603516936','886','7092377983779864576' UNION ALL SELECT '王丽','0','18636006766','986','7092377983779864576' UNION ALL SELECT '刘芳','0','13233622223','60','7092377983779864576' UNION ALL SELECT '杨斌','0','18734829240','176','7092377983779864576' UNION ALL SELECT '李佳钰','0','13593199517','657','7092377983779864576' UNION ALL SELECT '高云','0','18535505516','445','7092377983779864576' UNION ALL SELECT '葛茜','0','13835392888','972','7092377983779864576' UNION ALL SELECT '','0','18734865168','1887','7092377983779864576' UNION ALL SELECT '梁艳丽','0','13994223668','366','7092377983779864576' UNION ALL SELECT '胡先生','0','13363501606','1252','7092377983779864576' UNION ALL SELECT '李萌嘉','0','15203511305','1292','7092377983779864576' UNION ALL SELECT '李莉','0','13546385111','1112','7092377983779864576' UNION ALL SELECT '郝0士','0','13363516960','946','7092377983779864576' UNION ALL SELECT '聂','0','13037067158','1297','7092377983779864576' UNION ALL SELECT '黄','0','13734076111','1112','7092377983779864576' UNION ALL SELECT '马','0','13703518324','1677','7092377983779864576' UNION ALL SELECT '常璐璐','0','18600958625','274','7092377983779864576' UNION ALL SELECT '王','0','13934320055','863','7092377983779864576' UNION ALL SELECT '刘','0','18603458292','1709','7092377983779864576' UNION ALL SELECT '王','0','18635177911','550','7092377983779864576' UNION ALL SELECT '曹','0','13403513287','1557','7092377983779864576' UNION ALL SELECT '邓丽君','0','13933327060','1299','7092377983779864576' UNION ALL SELECT '丁一柯','0','18636664451','808','7092377983779864576' UNION ALL SELECT '亢云鹏','1','15110597772','2622','7092377983779864576' UNION ALL SELECT '南亭','0','18613519150','1091','7092377983779864576' UNION ALL SELECT '周0士','0','18603518067','1027','7092377983779864576' UNION ALL SELECT '杰','1','13301651399','28','7092377983779864576' UNION ALL SELECT '袁','0','13643511580','1260','7092377983779864576' UNION ALL SELECT '白仁莉','0','15234022859','2344','7092377983779864576' --五千八折 INSERT TImpMember(FName,FGender,FMobile,FBalance,fcARDtYPEiD) SELECT '郝','0','13935133798','3470','5392548275887232818' UNION ALL SELECT '王鑫','0','13934166385','46','5392548275887232818' UNION ALL SELECT '周','1','15135119696','38','5392548275887232818' UNION ALL SELECT '张小丽','0','15835438555','338','5392548275887232818' UNION ALL SELECT '李泽斌','1','13283666666','2287','5392548275887232818' UNION ALL SELECT '李彩英','0','13100035333','203','5392548275887232818' UNION ALL SELECT '王姝','0','13834665856','440','5392548275887232818' UNION ALL SELECT '郑璇','0','13485333956','2246','5392548275887232818' UNION ALL SELECT '朱家瑞','0','18636157001','168','5392548275887232818' UNION ALL SELECT '刘佳鑫','1','18622274466','1473','5392548275887232818' UNION ALL SELECT '田霞','0','18603416997','353','5392548275887232818' UNION ALL SELECT '','1','15935119555','648','5392548275887232818' UNION ALL SELECT '李子俊','0','13891739333','2828','5392548275887232818' UNION ALL SELECT '李佳','0','13934573333','1400','5392548275887232818' UNION ALL SELECT '连宛如','0','13603543024','1888','5392548275887232818' UNION ALL SELECT '刘','0','13546402507','52','5392548275887232818' UNION ALL SELECT '安从瑶','0','13994247309','1311','5392548275887232818' UNION ALL SELECT '刘丽英','0','18903431313','1470','5392548275887232818' UNION ALL SELECT '王','0','13994271648','77','5392548275887232818' UNION ALL SELECT '叶良云','0','15005018457','2254','5392548275887232818' UNION ALL SELECT '刘艳玲','0','13485358521','1075','5392548275887232818' UNION ALL SELECT '程慧','0','18603511667','1030','5392548275887232818' UNION ALL SELECT '高飞','0','15234057825','1460','5392548275887232818' UNION ALL SELECT '贾静','0','13835194908','14','5392548275887232818' UNION ALL SELECT '赵敏','0','18835133377','784','5392548275887232818' UNION ALL SELECT '宋伟','0','18735353777','1954','5392548275887232818' UNION ALL SELECT '王洋','1','18603545555','237','5392548275887232818' UNION ALL SELECT '胡超平','1','18234173333','20','5392548275887232818' UNION ALL SELECT '李莉','0','13513646561','491','5392548275887232818' UNION ALL SELECT '王','0','13934085666','996','5392548275887232818' UNION ALL SELECT '刘','0','13994225892','1915','5392548275887232818' UNION ALL SELECT '曾君兰','0','13156661333','30','5392548275887232818' UNION ALL SELECT '陈捷','0','15235173777','2802','5392548275887232818' UNION ALL SELECT '候','0','18634334525','256','5392548275887232818' UNION ALL SELECT '','0','18636174488','12','5392548275887232818' UNION ALL SELECT '李洋','0','15333669238','99','5392548275887232818' UNION ALL SELECT '王','0','15903469248','296','5392548275887232818' UNION ALL SELECT '','0','13643611358','976','5392548275887232818' UNION ALL SELECT '张洋','0','13753112526','126','5392548275887232818' UNION ALL SELECT '薛玉梅','0','13803435476','4','5392548275887232818' UNION ALL SELECT '张瑞琴','0','13403651888','2070','5392548275887232818' UNION ALL SELECT '王一捷','0','15935133084','1019','5392548275887232818' UNION ALL SELECT '张','0','15235360000','1675','5392548275887232818' UNION ALL SELECT '陈春妮','0','15536443333','1885','5392548275887232818' UNION ALL SELECT '王','0','15935114757','1417','5392548275887232818' UNION ALL SELECT '潘','0','13754880107','300','5392548275887232818' UNION ALL SELECT '赵冰','0','18636163961','1621','5392548275887232818' UNION ALL SELECT '赵','0','18035191430','1151','5392548275887232818' UNION ALL SELECT '胡','0','15003470986','737','5392548275887232818' UNION ALL SELECT '王晓燕','0','13834143633','1080','5392548275887232818' UNION ALL SELECT '张','0','13834517766','218','5392548275887232818' UNION ALL SELECT '杜薇','0','15103408608','1','5392548275887232818' UNION ALL SELECT '','0','15103408608','845','5392548275887232818' UNION ALL SELECT '苏雨辰','0','13734003688','882','5392548275887232818' UNION ALL SELECT '杨瑞燕','0','18636131616','2117','5392548275887232818' UNION ALL SELECT '任','0','18603519487','603','5392548275887232818' UNION ALL SELECT '李茜','0','18636103779','2314','5392548275887232818' UNION ALL SELECT '段婷','0','13633418865','225','5392548275887232818' UNION ALL SELECT '王静','0','13994276839','1355','5392548275887232818' UNION ALL SELECT '刘璐','0','15803568266','286','5392548275887232818' UNION ALL SELECT '周萍','0','15735186593','12','5392548275887232818' UNION ALL SELECT '朱虹','0','13503513751','834','5392548275887232818' UNION ALL SELECT '杨','0','18035184086','2540','5392548275887232818' UNION ALL SELECT '李佳芳','0','13209822028','712','5392548275887232818' UNION ALL SELECT '王丹','0','15803402329','1686','5392548275887232818' UNION ALL SELECT '','1','18135100118','1684','5392548275887232818' UNION ALL SELECT '刘伟','1','13488861888','3224','5392548275887232818' UNION ALL SELECT '樊莎莎','0','15034198880','100','5392548275887232818' UNION ALL SELECT '沈洁','0','13934567755','1780','5392548275887232818' UNION ALL SELECT '刘','1','13834630077','1401','5392548275887232818' UNION ALL SELECT '任','0','18603518338','404','5392548275887232818' UNION ALL SELECT '张','0','18103511112','453','5392548275887232818' UNION ALL SELECT '赵婷婷','1','18635125599','362','5392548275887232818' UNION ALL SELECT '范莉','0','13363510170','3321','5392548275887232818' UNION ALL SELECT '吴琼','0','18612701000','2014','5392548275887232818' --一万 INSERT TImpMember(FName,FGender,FMobile,FMemo,FBalance,fcARDtYPEiD) SELECT '','0','00000008633','','884',7092377992369799168 UNION ALL SELECT '辛亚丽','0','15234879558','','229',7092377992369799168 UNION ALL SELECT '郝成玉','0','15034001155','','68',7092377992369799168 UNION ALL SELECT '谭晶晶','0','18635068585','','79',7092377992369799168 UNION ALL SELECT '赵雯','0','15321543990','','1999',7092377992369799168 UNION ALL SELECT '裴','0','13509711337','','3578',7092377992369799168 UNION ALL SELECT '洪海燕','0','13834600444','','1413',7092377992369799168 UNION ALL SELECT '王尹','0','15203407811','','128',7092377992369799168 UNION ALL SELECT '刑颖','0','18636627698','','794',7092377992369799168 UNION ALL SELECT '康艳','0','18636107780','','4036',7092377992369799168 UNION ALL SELECT '王震霞','0','13994213118','','5110',7092377992369799168 UNION ALL SELECT '潘海燕','0','13834690228','','5371',7092377992369799168 UNION ALL SELECT '茹娜','0','18635170345','','4869',7092377992369799168 UNION ALL SELECT '孙静','0','13834156277','','194',7092377992369799168 UNION ALL SELECT '关俊梅','0','13834143658','','772',7092377992369799168 UNION ALL SELECT '袁洁','0','18636170510','','1141',7092377992369799168 UNION ALL SELECT '任秀凤','0','15935415555','','10',7092377992369799168 UNION ALL SELECT '赵坤','0','13643663665','','39',7092377992369799168 UNION ALL SELECT '李翠萍','0','13835160855','','30',7092377992369799168 UNION ALL SELECT '宋希玲','0','13203541111','','15',7092377992369799168 UNION ALL SELECT '陈如','0','13546314666','','159',7092377992369799168 UNION ALL SELECT '冯','0','13835125718','','57',7092377992369799168 UNION ALL SELECT '姜瑞涵','0','13643668039','','2799',7092377992369799168 UNION ALL SELECT '曹雯','0','15536809559','','1469',7092377992369799168 UNION ALL SELECT '王思颖','0','13934585766','','52',7092377992369799168 UNION ALL SELECT '暴霞','0','15035177776','','198',7092377992369799168 UNION ALL SELECT '史琪','0','13613488867','','1',7092377992369799168 UNION ALL SELECT '施','0','15635370000','','3600',7092377992369799168 UNION ALL SELECT '罗群英','0','18610311088','','841',7092377992369799168 UNION ALL SELECT '段','0','18503519823','','604',7092377992369799168 UNION ALL SELECT '白','0','13203519886','','685',7092377992369799168 UNION ALL SELECT '孙鑫','0','13485384349','','2725',7092377992369799168 UNION ALL SELECT '刘云','0','15934433156','','51',7092377992369799168 UNION ALL SELECT '李欣','0','18603510400','','5565',7092377992369799168 UNION ALL SELECT '张扬','0','15203512135','','3369',7092377992369799168 UNION ALL SELECT '李洁','0','13994283577','','1777',7092377992369799168 UNION ALL SELECT '','0','13835166561','','128',7092377992369799168 UNION ALL SELECT '张婉玉','0','13980522919','','168',7092377992369799168 UNION ALL SELECT '贾瑞林','1','13994201679','','1829',7092377992369799168 UNION ALL SELECT '薛姐','0','13546362268','','9344',7092377992369799168 UNION ALL SELECT '陈虹','0','13835100319','','490',7092377992369799168 UNION ALL SELECT '王','0','13834580830','','423',7092377992369799168 UNION ALL SELECT '张妍','0','15525081111','','383',7092377992369799168 UNION ALL SELECT '','0','13643696963','','3686',7092377992369799168 UNION ALL SELECT '田碧英','0','13099078585','','400',7092377992369799168 UNION ALL SELECT '王','0','13903412103','','1461',7092377992369799168 UNION ALL SELECT '王芳','0','13803403233','','3392',7092377992369799168 UNION ALL SELECT '薛瑞博','0','18516008828','','4902',7092377992369799168 UNION ALL SELECT '王媛媛','0','00000000858','','2116',7092377992369799168 UNION ALL SELECT '宋娟','0','18810871097','','108',7092377992369799168 UNION ALL SELECT '','1','0510','','5943',7092377992369799168 UNION ALL SELECT '王钰','0','18903410251','','2442',7092377992369799168 UNION ALL SELECT '谢婧','0','15103558888','','2857',7092377992369799168 UNION ALL SELECT '武立','0','15110327774','','7320',7092377992369799168 UNION ALL SELECT '王姐','0','13834543701','五折','7718',7092377992369799168 UNION ALL SELECT '田文娟','0','18634395555','','674',7092377992369799168 UNION ALL SELECT '冯','0','13753104039','','2948',7092377992369799168 UNION ALL SELECT '张亮','1','18234194111','','2334',7092377992369799168 UNION ALL SELECT '刘0士','0','15935124499','','2988',7092377992369799168 UNION ALL SELECT '小美','','18050949999','','6114',7092377992369799168 UPDATE TImpMember SET FMemNo = FMobile SELECT * FROM TMemberCardType ALTER TABLE TImpMember ADD FMemId BIGINT ALTER TABLE TImpMember ADD FCardNo VARCHAR(50) ALTER TABLE TImpMember ADD FMemNo VARCHAR(50) ALTER TABLE TImpMember ADD FName VARCHAR(50) ALTER TABLE TImpMember ADD FGender INT ALTER TABLE TImpMember ADD FMobile VARCHAR(50) ALTER TABLE TImpMember ADD FCardTypeId BIGINT ALTER TABLE TImpMember ADD FCourseId BIGINT ALTER TABLE TImpMember ADD FBalance DECIMAL(18,6) ALTER TABLE TImpMember ADD FRemainTimes INT ALTER TABLE TImpMember ADD FPurTimes INT ALTER TABLE TImpMember ADD FPurAmount DECIMAL(18,6) ALTER TABLE TImpMember ADD FItemId BIGINT ALTER TABLE TImpMember ADD FCreateDate DATETIME ALTER TABLE TImpMember ADD FExpiredDate DATETIME ALTER TABLE TImpMember ADD FCompId BIGINT ALTER TABLE TImpMember ADD FCardId BIGINT ALTER TABLE TImpMember ADD FMemo VARCHAR(1000) ALTER TABLE TImpMember ADD FArrear DECIMAL(18,6) ALTER TABLE TImpMember ADD FPoint DECIMAL(18,6) ALTER TABLE TImpMember ADD FBirthday DATETIME ALTER TABLE TImpMember ADD FBirthdayType CHAR UPDATE TImpMember SET FMemId = dbo.FNNewId() WHERE FMemid IS NULL UPDATE TImpMember SET FCardId = dbo.FNNewId() WHERE FCardId IS NULL UPDATE TImpMember SET FCardNo = FMemNo UPDATE TImpMember SET FMemNo = FMobile UPDATE TImpMember SET FCreateDate = getdate() UPDATE TImpMember SET FExpiredDate = dateadd(YEAR,100,FCreateDate) UPDATE TImpMember SET FCompId = 1 UPDATE TImpMember SET FName = FMobile WHERE FName = '' SELECT * FROM TCompany SELECT * FROM TMemberCardType UPDATE A SET A.FMemNo = 'BM' + A.FMemNo , A.FCardNo = 'BM' + A.FCardNo FROM TImpMember AS A,TMember AS B WHERE A.FMemNo IN(SELECT FMemNo FROM TMember) INSERT INTO TMember( FMemId, FMemNo, FName, FBriefCode, FTypeId, FCompId, FCreateDate, FGender, FBirthdayType, FBirthday,FTelephone,FMobilePhone,FQQ,FWeChat,FIdCard,FEmail,FAddress,FProId,FCPW,FQPW, FChargeEmpId,FPoint,FRecvConsSMS,FRecvBulkSMS,FMemo,FCustom1,FCustom2,FCustom3,FCustom4,FCustom5) SELECT FMemId AS FMemId, FMemNo AS FMemNo, FName AS FName, dbo.FNGetFirstPinYin(FName), 0 AS FTypeId, FCompId AS FCompId, FCreateDate AS FCreateDate, FGender AS FGender, 'G' AS FBirthdayType, FBirthday AS FBirthday, '' AS FTelephone, ISNULL(FMobile,'') AS FMobilePhone, '' AS FQQ, '' AS FWeChat, '' AS FIdCard, '' AS FEmail, '' AS FAddress, 0 AS FProId, '' AS FCPW, '' AS FQPW, 0 AS FChargeEmpId, ISNULL( FPoint,0) AS FPoint, 1 AS FRecvConsSMS, 1 AS FRecvBulkSMS, ISNULL(FMemo,'') AS FMemo, '' AS FCustom1,'' AS FCustom2,'' AS FCustom3,'' AS FCustom4,'' AS FCustom5 from TImpMember WHERE FMemId NOT IN(SELECT FMemId FROM TMember) AND FMemNo IN(SELECT FMemNo FROM TMember) SELECT FMemNO ,SUM(1) FROM TImpMember GROUP BY FMemNo HAVING(SUM(1) > 1) SELECT * FROM TImpMember WHERE FMemNo = '15103408608' UPDATE TImpMember SET FMemNo = 'A' + FMemNo,FCardNo = 'A' + FCardNo WHERE FMemId = 7738388393570846988 UPDATE TImpMember SET FMemNo = 'A' + FMemNo,FCardNo = 'A' + FCardNo WHERE FMemId = 6348305697217208895 INSERT INTO TMemberCard( FCardId, FCardNo, FCardFaceNo, FTypeId, FValueType, FCompId, FMemId, FState, FCreateDate, FExpiredDate, FTotalTimes, FUsedTimes, FSaleCompId, FSaleBillId, FMemo) SELECT FCardId AS FId, FMemno AS FNo, FMemno AS FFaceNo, FCardTypeId AS FTypeId, (SELECT FValueType FROM TMemberCardType WHERE FId = FCardTypeId) AS FValueType, FCompId AS FCompId, FMemId AS FMemId, 1 AS FState, FCreateDate AS FCreateDate, FExpiredDate, 0 AS FTotalTimes, 0 AS FUsedTimes, FCompId AS FSaleCompId, 0 AS FSaleBillId, '' AS FMemo FROM TImpMember WHERE FCardId NOT IN(SELECT FCardid FROM TMemberCard) INSERT TMemberCardAccount(FMemId,FId,FCardId,FAcctId,FDeposit,FBalance,FArrear,FCreateDate,FExpiredDate,FMemo) SELECT FMemId,dbo.FNNewId(),FCardId AS FCardId,3,FBalance,FBalance,0,FCreateDate,FExpiredDate AS FExpiredDate,'' FROM TImpMember AS A WHERE FCardTypeId != 5163697921231729680 INSERT TMemberCardAcctHist(FId,FMemId,FCardId,FAcctId,FTime,FCardTypeId,FCompId,FBillType,FBizType,FTransId,FTransNo,FInAmount,FOutAmount,FBalance,FArrear,FRecordTime,FMemo) select dbo.FNNewId(),A.FMemId,A.FCardId,3,getdate(),A.FCardTypeId,A.FCompId,'DR','Import',0,'',A.FBalance,0,A.FBalance,0,getdate(),'从Excel中导入' FROM TImpMember AS A WHERE FCardTypeId != 5163697921231729680 WHERE FMemId NOT IN(SELECT FMemId FROM TMemberCard) SELECT * FROM TMemberCardAccount WHERE FMemId = 8029045072988835850 SELECT * FROM TImpMember WHERE FCardTypeId != 5163697921231729680 SELECT * FROM WHERE FCardTypeId IS NOT NULL USE TaiYuanChengYi01 select * from TUser SELECT * FROM TMemberCardType