Altering a table

After a table is created, you can make the following modifications if the table is not in an UltraLite database (you need to modify an UltraLite database schema to modify a table):

You cannot:

Figure 16-3: Table definition in Columns view of Database painter

Shown is the Database Painter Columns view for the Employee table. The column names are listed in the first column. In the second column, the data type of the columns is selected. Additional columns for Width, Decimal, Null, and Default are displayed. Other views in the painter stack are I S Q L Session, Results, and Activity Log.

StepsTo alter a table:

  1. Highlight the table and select Alter Table from the pop-up menu.

    NoteOpening multiple instances of tables You can open another instance of a table by selecting Columns from the View menu. Doing this is helpful when you want to use the Database painter's cut, copy, and paste features to cut or copy and paste between tables.

    The table definition displays in the Columns view.

  2. Make the changes you want in the Columns view or in the Object Details view.

  3. Select Save Table or Save Changes.

    PocketBuilder submits the pending SQL syntax statements it generated to the DBMS, and the table is modified.