AFT
AFT (Add From Terminal)
Adding Data from the Terminal to an EntitySet or Relationship
Overview
The AFT command allows users to add data from the terminal to any EntitySet or relationship with fields. This command is interactive, prompting users to input data for specified fields.
Syntax
AFT [object [field]]
Parameters
- object: The name of an EntitySet or relationship with fields. A role name can also be used.
- field: A target field in the object. If omitted, the software will prompt for all fields in the object in their defined order.
Comments
- AFT field stands for ADD object FROM TERMINAL PROMPT. This command is designed to facilitate data entry directly from the terminal, making it easier to populate fields interactively.
Examples
Example 1: Adding Data to an EntitySet
To add data to an EntitySet named Ents, you would use the following command:
aft Ents
EntName EntType AvgSz DirName
:
This command will prompt you to enter values for EntName, EntType, AvgSz, and DirName in sequence.
Example 2: Adding Data to Specific Fields
To add data to specific fields in an EntitySet named Customers, you would use the following command:
aft Customers LastName FirstName TelNum
LastName FirstName TelNum
:
This command will prompt you to enter values for LastName, FirstName, and TelNum in sequence.
Usage Tips
- Ensure that the
objectname is correctly specified to avoid errors. - If you omit the
fieldparameter, be prepared to enter data for all fields in the object in their defined order. - Use role names if applicable to simplify the command.
By using the AFT command, you can efficiently add data to your EntitySets or relationships directly from the terminal, streamlining your data entry process.
