Adding a Database Column to a Table

See Also

  1. Right-click the table node or for an existing column in the table and choose Add Column.

    Type values for the column in the dialog box.

  2. Type the name of the column. This is the name used by SQL.
  3. Provide the Type of the column by selecting a Type in the Type combo box.
  4. Provide the size of the column in the Size text field.
  5. Provide a scale value for numeric or decimal data type.
  6. Provide a value for the default value for the column.
  7. Provide a default value for the column in the Default text field.
  8. Select constraints you want for column values (Primary key, and Unique or Null).

    If you select the Primary key checkbox, the column is included in the primary key, and you need to select an index.

  9. If you want to use an index, select the Index checkbox and select an index from the combo box.
  10. (Optional) Use the Check checkbox to enter constraints to be checked while inserting or updating data in that column.
tip The ability to add or copy columns depends on your database you use. Your database system might not allow you to alter tables containing data.
See Also
Creating a Table

Legal Notices