createIndex
\Bitrix\Main\DB\Result public \Bitrix\Main\DB\MysqlCommonConnection::createIndex( string $tableName, string $indexName, string|array$columnNames, array $columnLengths = null );
This non-static method creates an index of columns.
Parameters
Parameter | Description | Version |
---|---|---|
$tableName | Name of table. | |
$indexName | Name of new index. | |
$columnNames | Name of the column or array of column names to be included into the index. |
Exceptions
Examples
© «Bitrix24», 2001-2024
Up