Deleting a Column

Delete a column from the table. If the table has only one column, you cannot delete it.

Prerequisites
Database Version Table Column Privileges
SAP Sybase IQ 15.3 and 15.4 Deleting a column without a primary key or unique constraint – you must have one of:
  • DBA authority
  • Both ALTER permission on the table
  • You own the underlying table
Deleting a column with a primary key or unique constraint – you must have one of:
  • DBA authority
  • Both ALTER and REFERENCE permission on the table
  • You own the underlying table
SAP Sybase IQ 16.0 Deleting a column without a primary key or unique constraint – you must have one of:
  • ALTER ANY TABLE system privilege
  • ALTER ANY OBJECT system privilege
  • ALTER permission on the underlying table
  • You own the underlying table
Deleting a column with a primary key or unique constraint – you must have one of:
  • ALTER ANY TABLE system privilege
  • ALTER ANY OBJECT system privilege
  • Both ALTER and REFERENCE permission on the underlying table
  • You own the underlying table
Task
  1. In the Perspective Resources view, select the resource, and select Resource > Administration Console.
  2. In the left pane, expand IQ Servers > Schema Objects > Tables, and then select Tables or Global Temporary Tables.
  3. Select a table from the right pane and either:
    • Click the arrow to the right of the name and select Properties, or
    • From the Administration Console menu bar, select Resource > Properties.
    The Table Properties view appears.
  4. In the left pane, click Columns and in the right pane, select a column and click Delete.
    Warning!  No confirmation prompt appears before the column is deleted.
  5. Do one of:
    • Click OK to update any changes to the database and exit the properties view.
    • Click Apply to update any changes to the database, but remain in the properties view.
    • Click Cancel to cancel any changes not updated to the database and exit the properties view.
Related tasks
Adding a Column
Viewing or Modifying Column Properties
Authenticating a Login Account for a Managed Resource
Related reference
Table Column Privilege Summary