简体   繁体   English

_Field表正在进行4GL数据库

[英]_Field table in progress 4GL database

Which is the field in this table which will give information of table to which field of _field belongs. 该表中的哪个字段将提供_field所属字段的表信息。 for example say _Field is having one record with _field-name = 'XYZ', how can i identify to which table this XYZ field belongs? 例如说_Field有一条记录,且_field-name ='XYZ',我如何识别该XYZ字段属于哪个表?

The RecordID (RECID) of the _file table is stored in a field in the _filed table. _file表的RecordID(RECID)存储在_filed表中的字段中。

FOR EACH _file NO-LOCK, EACH _field NO-LOCK WHERE _field._file-recid = RECID(_file):

    DISPLAY _file._file-name _field._field-name.
END.

Or utilize the primary index in the query using the "OF" operator: 或使用“ OF”运算符在查询中利用主索引:

FOR EACH _file NO-LOCK, EACH _field NO-LOCK OF _file:

    DISPLAY _file._file-name _field._field-name.
END.

它通过_File-recid字段链接到_File表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM