一。建立索引文件:对打开的索引文件,可用下列命令建立索引:

格式:index on 索引关键字|tag 索引名|to 索引文件名说明:(1).tag 索引名:指定索引名,此索引存放在与表名相同的。cdx文件中。(2).to 索引文件名:选择此项生成独立索引,即一个索引存放在一个索引文件中;否则生成的是结构化复合索引。例1:建立"工资情况"表的结构化复合索引文件,其索引关键字分别为姓名和工资,而索引名分别为xm和gz.use 工资情况
browse
index on 姓名 tag xm
index on 工资 tag gz
browse分别执行以上命令后,生成了"工资情况。cdx"文件,其中存放了xm和gz两个索引。例2:用"姓名"作索引关键字,建立"职工档案。dbf"的独立索引文件,文件名为a.idx.use 职工档案
index on 姓名 to hello &&执行此命令,检查默认目录e:myvfp,会发现多了一个文件:hello.idx
use二。打开索引:打开表时,系统会自动打开结构化复合索引,但此时显示的仍是物理顺序。要使索引起作用,必须指定主控索引。主控索引就是控制当前显示顺序的索引。也可以在打开表的同时指定主控索引。1.打开表的同时打开索引并指定主控索引:格式:use 表名 [index 索引文件名] [order tag 顺序号|索引名]说明:(1).index 索引文件名:用于打开独立索引文件。(2).order tag 顺序号|索引名:用于打开结构化复合索引。其中,顺序号为该索引在复合索引文件中的先后顺序,即在"表设计器"的"索引"选项卡中看到的该索引的位置。

http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155129_7494.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155113_8680.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160204_8207.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155910_4768.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155034_6732.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154830_3411.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160108_7512.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155449_4718.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155942_7780.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160223_2073.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154807_0899.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160319_2347.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155303_8937.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155603_0621.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155655_2814.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155351_2938.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155727_5384.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160125_7534.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155013_7862.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155206_4656.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155410_6232.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155835_8071.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160026_5485.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160243_8073.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155524_4240.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160048_6915.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154756_7784.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155053_7673.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706155621_0640.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154917_5854.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160004_9690.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160428_1142.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154935_6600.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160336_2840.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154853_1713.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706154954_7359.html
http://www.qingdaqiye.com/kindeditor/attached/file/20200706/20200706160146_7895.html

VFP基础教程 2.8 使用命令建立和操作索引文件相关推荐

  1. 【Graph】NetworkX官方基础教程:图的生成与相关操作

    NetworkX官方基础教程:图的生成与相关操作 1. Graph生成和graph操作 2. 分析图 3. 画图 参考资料 本文作为对图结构和复杂网络的快速上手,内容包括基于NetworkX进行图的生 ...

  2. lammps教程:region plane命令建立锐角刀具模型

    大家好,我是小马老师. 本文介绍lammps建模教程:锐角刀具的建模. 锐角刀具主要使用region plane命令设置多个平面,经过组合之后得到具有特定形状的区域. region plane命令语法 ...

  3. winedit使用教程_基础教程:BCDEDIT常用命令及使用实例(图)

    如果只是临时为了应急,比如启动菜单修复,大家也可以使用一些现成的启动管理软件,比如EasyBCD等,如果时间或条件许可,天缘还是建议你多"折腾"一下,下次再遇到类似问题就会得心应手 ...

  4. 2011计算机2级,2011年度计算机等级考试二级VFP基础教程(41)

    5.10 复选框 一.复选框:通常代表一个逻辑值.复选框由一个方框和一个标题组成,一般情况下,用空框表示该复选项未被选下,而当用户选中某一个复选项时,该复选框前面会出现一个对号. 二.复选框的常用属性 ...

  5. git基础教程(11) git checkout命令,掌握这些足以

    文章目录 概览 用法一 用法二 用法三 详细说明 1. `git checkout [<commit>] [--] <paths>` 2. `git checkout < ...

  6. win10 php命令行,win10自带播放器 rmvb_大学 计算机文化基础教程 win 7_win php 命令行...

    很多网友的手机都早已用上了SSD,而且更新了Win10系统,电脑软件配置高平台也足够新,但是却看到手机开机还是非常慢,一般来说这与电脑原本的配置并无太大关系,往往是由以上几个方面产生的. win10电 ...

  7. EOS开发基础之五:使用cleos命令行客户端操作EOS——智能合约之Exchange

    先回答一下上一节中留下的问题,为什么我就看不到eosio这个账户中的钱呢?我明明为它create了很多token啊. 对,你是create了,但是没有issue啊.create了1000000000 ...

  8. Python基础教程(八):日期和时间、文件I/O、异常处理

    Python 日期和时间 Python程序能用很多方式处理日期和时间.转换日期格式是一个常见的例行琐事.Python有一个 time 和 calendar 模组可以帮忙. 什么是Tick? 时间间隔是 ...

  9. Python基础教程:获取list中指定元素的索引

    在平时开发过程中,经常遇到需要在数据中获取特定的元素的信息,如到达目的地最近的车站,橱窗里面最贵的物品等等.怎么办?看下面 方法一: 利用数组自身的特性 list.index(target), 其中a ...

  10. Jupyter notebook基础教程(启动,汉化,操作)

    1.启动 进入需要启动的目录,shift+右键启动终端 然后在终端中输入命令即可启动jupyter到当前目录(通过终端的链接访问程序) jupyter notebookjupyter notebook ...

最新文章

  1. 1.2 Kali与Debian的关系
  2. C/C++连接MySql数据库
  3. Matlab中cq是什么,Matlab中gradient函数(梯度计算原理)
  4. 最小拍有纹波系统仿真实验matlab代码,最小拍控制器设计.doc
  5. 查看mysql是否内存中读取数据_MySQL中的内存临时表
  6. 江苏电信:SOC建设介绍
  7. This is Me!——回顾第一个项目的前前后后
  8. 开发Eclipse插件
  9. 智能投放系统之场景分析最佳实践
  10. Hibernate Session和Jpa EntityManager
  11. acer 4741G安装ubuntu10.10显卡成功
  12. 纠错码 - 海明码/汉明码
  13. PHP小白之路1--PHP之简易留言板设计
  14. 简单的MCU加密方法,防破解、防抄袭、防山寨
  15. android 实现广告弹窗,Android实现自适应屏幕的弹窗广告
  16. teablue数据分析_京东消费者数据分析
  17. 树莓派 python 驱动 lcd tft spi 1.8寸 ST7735S
  18. 邮政收件箱界面html,时尚邮件收件箱UI设计效果
  19. 金蝶外贸进出口行业解决方案(K/3 Cloud、EAS版)
  20. 想配个电脑玩魔兽世界9.0,要什么配置,大概多少钱?

热门文章

  1. 端口打流互通功能测试
  2. 钢铁雄心II HOI2 作弊码合辑
  3. Selenium自动化测试——计算器加法测试
  4. 视频教程-微信小程序直播开发快速入门-微信开发
  5. RabbitMQ项目实战——商户管理系统
  6. Vulkan::0.0::开始于VulKanSDK(Getting Started with the Vulkan SDK)
  7. VM虚拟机下安装vulkan的踩坑
  8. C语言Float的存储大小
  9. 【uvm源码】uvm_port_base
  10. python给用户打标签_用户画像—打用户行为标签