Copying column definitions
Copying column definitions saves you from defining columns in multiple tables by sharing the same definitions across the tables. In this example, the ITEM_NUMBER column in the SUPPLIERS table shares the definition of the ITEM_NUMBER column in the INVENTORY_LIST table. To copy column definitions, follow these steps:
You can then add the following additional columns to the SUPPLIERS table.
- In the SUPPLIERS Table Properties or the New Table window, click Browse.
- In the Browse Tables window, expand SAMPLELIB.
- Click INVENTORY_LIST. The columns in this table are listed, along with their data types, sizes, and descriptions.
- Select ITEM_NUMBER.
- Click Add to copy this column definition to the SUPPLIERS table.
- Close the Browse Columns window.
Column name Type Length Precision Scale Nullable Default value SUPPLIER_NUMBER CHAR 4 No 0 SUPPLIER_COST DECIMAL 8 2 Yes NULL
Parent topic:
Creating a table and defining a column