Altering a Table

GaussDB(for MySQL) database tables are classified into global tables, unsharded tables, and sharded tables. Only global tables and unsharded tables can be modified.

To modify sharded tables, execute SQL statements in the SQL window.

Procedure

  1. On the top menu bar, choose Database Management.
  2. On the displayed Objects page, select Tables, locate the target table, and click Alter in the Operation column.
  3. On the displayed page, modify the basic table information and click Next.
  4. Make modifications on the Column page. After the operation is complete, modify the index information as required or click Alter.
  5. In the SQL Preview dialog box, click Execute.