Copy a table or column definition as text
From a meta-schema diagram, you can copy a table or a column and past the results in a Code Editor text document.
Using the copy-and-paste method, you
can quickly add DEFINE
statements to your source code.
When you copy a
table, the
DEFINE
statement creates a record using the table name as part of the
record variable name:DEFINE t_orders RECORD LIKE orders.*
When you copy
a column, the
DEFINE
statement creates a variable using the column name as part of
the variable name:DEFINE c_orderid LIKE orders.orderid
Before you begin:
You should have two documents open in the central work area: a text file displayed in Code Editor and a database meta-schema file displaying a diagram of tables and columns.