收藏 分享(赏)

dbf语句2.doc

上传人:j35w19 文档编号:6621274 上传时间:2019-04-18 格式:DOC 页数:3 大小:32KB
下载 相关 举报
dbf语句2.doc_第1页
第1页 / 共3页
dbf语句2.doc_第2页
第2页 / 共3页
dbf语句2.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报