createIndex
\Bitrix\Main\DB\Result public \Bitrix\Main\DB\Connection::createIndex( string $tableName, string $indexName, string|array$columnNames );
This non-static method creates a column index.
Parameters
Parameter | Description | Version |
---|---|---|
$tableName | Table name. | |
$indexName | New index name. | |
$columnNames | Name of column or array of column names to be included into the index. |
Exceptions
Examples
© «Bitrix24», 2001-2025