1、MODIFY STRUCTURE 修改字段属性BROWSE 全屏操作1、从 A 表选出受理业务字段含有“新装”字样的记录:select * from A where 受理业务 like “%新装%“2、根据号码挑选出 a 库与 b 库有相同号码的记录:Select * from a,b where a.msisdn=b.msisdn3、在 a 库中挑选出 a 库中与 b 库不同号码的记录:sele * from a where msisdn not in (sele msisdn from b)4、删除重复记录:use 表index on 号码 to 1use 表 index 1total o
2、n 号码 to 新表5、从 A 表中挑选出有重复的号码:sele msisdn from A group by msisdn having count(msisdn)16、去掉字段前面的空格:replace all msisdn with allt(msisdn)7、合并 b 表记录到 a 表中(注:两表中的字段名称和类型要完全相同,否则只能添加相同的字段):use aappen from b8、左关联(注:A 表的记录不变,将 B 表关联到 A表,要求两表记录不重复,如有重复关联出来新表的记录亦会重复):Sele * from A left join B on A.msisdn=B.msis
3、dn9、选出含有特定数字的电话号码,如选出尾数为 4的电话号码:Select * from a where subs(号码,11,1)=410、根据字段排序(ASC/DESC):select * from aa order by 受理时间 desc11、全网用户分割use 文件名.dbf1、goto topcopy to 文件 1.csv deli next 600002、goto 60001copy to 文件 2.csv deli next 600003、goto 120001copy to 文件 3.csv deli next 6000011、追加数据:Append from A12、追加字段SELECT *,总费用 1+总费用 12+总费用 11+总费用 10+总费用 9 as 总和 from 合浦 2009 年 1 月用户月费用 121110913、筛选消费层次select * from A where msisdn =数量14、标志删除Delete from cx20 where 受理时间 like “%2011-05%“ 15、确定删除Pack16、排序Sele * from cx20 order by 受理时间Sele * from cx20 order by 受理时间 desc17、and or