Translations of this page?:

Create Index

Creates an index on an existing column or set of columns.

Samples

<createIndex tableName="user" indexName="idx_user_username">
    <column name="username"/>
</createIndex>
<createIndex tableName="user" indexName="idx_person_name">
    <column name="firstname"/>
    <column name="lastname"/>
</createIndex>

Available Attributes

tableName Name of the table to add the index to [required]
schemaName Name of the table schema
indexName Name of the index to create
tablespace “Tablespace” (file group in SQL Server) to create the index in

Available Sub-Tags

column Column(s) to add to the index. See the column tag documentation for more information

Database Compatiblity

MySQL Does not support tablespaces
PostgreSQL No Issues
Oracle No Issues
MS-SQL No Issues
Sybase No Issues
DB2 No Issues
Derby Does not support tablespaces
HSQL Does not support tablespaces
H2 Does not support tablespaces
Caché Does not support tablespaces
Firebird No Issues
MaxDB No Issues

Automatic Rollback Support: YES

 
manual/create_index.txt · Last modified: 2008/03/18 07:08 (external edit)     Back to top