Deleting a Primary, Foreign, or Unique Key Constraint

Delete a primary, foreign, or unique key constraint from a table.

Prerequisites
Database Version Table Constraint Privileges
SAP Sybase IQ 15.3 and 15.4 Requires one of:
  • DBA authority.
  • ALTER and REFERENCE permission on the underlying table.
  • You own the underlying table.
SAP Sybase IQ 16.0
Requires one of:
  • ALTER ANY OBJECT system privilege.
  • ALTER ANY TABLE system privilege.
  • 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 Administration Console, expand IQ Servers > Schema Objects > Tables.
  3. Select Tables or Global Temporary Tables, select the table in the right pane, click the drop-down arrow that appears to the right, and select Properties.
  4. Select Constraints.
  5. Select one or more primary, foreign, or unique key constraints from the list.
    Note: Different system privileges are required to delete different constraint types. If you do not have sufficient privilege to delete a selected constraint, the Delete button is unavailable.
  6. Click Delete.
  7. The selected constraints are removed from the list, but they are not yet deleted. Click Apply and OK to complete the deletion process.
Related tasks
Creating a Column Check Constraint
Creating a Foreign Key Constraint
Creating a Table Check Constraint
Creating a Unique Constraint
Deleting a Table or Column Check Constraint
Rebuilding a Unique, Primary or Foreign Key Constraint
Validating a Unique, Primary or Foreign Key Constraint
Generating Constraint DDL Commands
Viewing or Modifying Constraint Properties
Authenticating a Login Account for a Managed Resource
Related reference
Table Constraints Privilege Summary