Creating or Re-creating a Table

See Also

You can create a table using the Create Table dialog box.

You can also recreate a table in one of two ways:

To create a new table:

  1. In the Runtime window, expand the node for a connected database.
  2. Right-click the Tables node and choose Create Table.
  3. Type the table name.

    This name must follow conventions for table names in your database. Case is usually insignificant and you must not use spaces.

  4. Select the owner of the new table from the possible names of database users.

    The dialog box defaults to the name by which you are connected.

  5. Click either Add Column or Remove to add or remove columns from the table.
  6. Specify the column type and size. You must specify the column type but size is optional for some data types.

    All other properties are optional.

  7. Click OK to create the table.

To re-create a table and its structure using a database snapshot:

  1. Right-click a table from the table node.
  2. Choose Grab Structure. This action stores the definition of a selected table to a file in the file system.
  3. Type a file name in which to save the structure of the table (the table definition).
  4. Right-click the Tables node (or the node of any table under the Tables node) and choose Recreate Table.
  5. Select the name of a file from which you want to re-create a table.
  6. In the following dialog box, specify the table name and click OK to re-create the table. If you want to modify the table definition command, click the Edit table script button and edit the table definition command.
Tip You can recreate a table in a different database from the one from which you saved the structure, even if the SQL syntax to create the second database is different from the syntax of the first. You can thus create database-independent schemas. For example, you can develop a complete application with a Pointbase database. For deployment, you can transfer the table structures to an Oracle database to create the Oracle database without editing SQL.

See Also
Browsing Structures
Enabling and Disabling Debug Mode to Monitor SQL Commands
Adding a Database Column to a Table

Legal Notices