Table Design

From LibreOffice Help
Jump to: navigation, search

In the Table Design window you define new tables or edit the structure of a table.

In a database file window, click the Tables icon. Choose Insert - Table Design or Edit - Edit

Database Overview

Table Design

The window has its own menu bar. It also contains the following new command: Index Design

Table definition area

This area is where you define the table structure.

Field Name

Specifies the name of the data field. Note the database restrictions, such as the length of the name, special characters and spaces.

Field type

Specifies the field type.

Description

Specifies an optional description.

The row headers contain the following context menu commands:

Cut

Cuts the selected row to the clipboard.

Copy

Copies the selected row to the clipboard.

Paste

Pastes the content of the clipboard.

Delete

Deletes the selected row.

Insert Rows

Inserts an empty row above the current row, if the table has not been saved. Inserts an empty row at the end of the table if the table has been saved.

Primary Key

If this command has a check mark, the data field in this line is a primary key. By clicking the command you activate/deactivate the status. The command is only visible if the data source supports primary keys.

Field properties

Defines the field properties of the currently selected field.

Length

Specifies the length of the data field.

Decimal places

Specifies the number of decimal places for a numerical field or decimal field.

Default value

Specifies the value that is the default in new data records.

Format example

Displays the format code that you can select with the ... button.

...

This button opens the Field Format dialog.

Help area

Displays help texts.