Creating Indexes

SAP Sybase IQ automatically creates a default index on every table column when you create a database in an IQ store. For best query performance, create additional indexes.

Prerequisites
If you are creating an index on a partitioned table, all dbspaces must be online.
Task
  1. Choose the right index type for your data. Make sure that the selected index type allows the data type for that column.
    If you do not specify an index type, SAP Sybase IQ creates an HG index. Several front-end tools create an HG index automatically for this reason.
  2. Create an index using any method:
    • Enter a CREATE INDEX statement.
      For example, create a High_Non_Group (HNG) index called ShipIx on the ShipDate column of the SalesOrderItems table.
      CREATE HNG INDEX ShipIx 
        ON dbo.SalesOrderItems (ShipDate)
    • Use the Sybase Control Center Create Index wizard.
    • Use a PRIMARY KEY, or UNIQUE column constraint of CREATE TABLE, which creates an HG index automatically.
Related reference
CREATE INDEX Statement
CREATE TABLE Statement