dBase IV数据库未编入索引

时间:2017-06-09 03:59:16

标签: dbase

我正在使用dBase IV,我无法确定在关闭创建的新数据库后错误Database not indexed发生的原因。

再现行为:

create database
add two fields
close all

use database
seek 1

1 个答案:

答案 0 :(得分:0)

After lot tries accidentally found the answer, when I open the database I need to set the order with the index

USE FOO
DISPLAY STRUCTURE
Field   Field Name   Type      Width  Dec  Index
1       ID           Numeric   6           Y
2       TEXT         Character 60          N
CLOSE ALL

Open setting the order

USE FOO ORDER ID
SEEK <ID_NUMBER>