47 lines
1.2 KiB
Groff
47 lines
1.2 KiB
Groff
.TH dbdict "" "" "/rdb Command"
|
|
.PC "Print a data-base dictionary"
|
|
\fBdbdict < \fItable\fR
|
|
.PP
|
|
.II "data dictionary"
|
|
.II "column^position"
|
|
.II "column^number"
|
|
The command
|
|
.B dbdict
|
|
prints a table of two columns:
|
|
The first gives the names of each field in
|
|
.IR table ,
|
|
and the second gives the field numbers.
|
|
.SH Example
|
|
For example, we might have a table named
|
|
.I journal
|
|
that looks like this:
|
|
.DM
|
|
Date Account Debit Credit Description
|
|
------ ------- ----- ------ ----------------------------------
|
|
861222 101 25000 cash from loan
|
|
861222 211.1 25000 loan number #378-14 Bank Amerigold
|
|
861223 150.1 10000 test equipment from Zarkoff
|
|
861223 101 5000 cash payment
|
|
861223 211.2 5000 note payable to Zarkoff Equipment
|
|
861224 130 30000 inventory - parts from CCPSC
|
|
861224 201.1 15000 accounts payable to CCPSC
|
|
861224 101 15000 cash payment to CCPSC for parts
|
|
.DE
|
|
.PP
|
|
The command
|
|
.DM
|
|
dbdict < journal
|
|
.DE
|
|
.PP
|
|
produces the following:
|
|
.DM
|
|
field name
|
|
----- ----
|
|
1 Date
|
|
2 Account
|
|
3 Debit
|
|
4 Credit
|
|
5 Description
|
|
.DE
|
|
.SO dbdict
|