Generating Table Index DDL Commands

Display the data description language SQL code for adding an index to a table. The SQL code can be a useful reference and training tool.

Prerequisites
Database Version Table Index Privileges
SAP Sybase IQ 15.3 and 15.4

None

SAP Sybase IQ 16.0

None

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, select Indexes.
    Note: Indexes does not appear for Proxy tables as they are not supported.
  5. Select one or more indexes from the right pane and click Generate DDL.
    Note: Use Shift-click or Control-click to select multiple indexes.
  6. Click Generate DDL.
    The DDL window shows the SQL code used to add the selected index to the table or materialized view.
Related tasks
Creating an Index on an IQ System Store Table
Creating an Index on an IQ Store Table
Deleting a Table Index
Rebuilding a Table Index
Validating a Table Index
Moving a Table Index
Viewing or Modifying Table Index Properties
Authenticating a Login Account for a Managed Resource
Related reference
Column Index Types
Table Index Privilege Summary