Documentation

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

ParameterDescriptionVersion
$tableNameName of table.
$indexNameName of new index.
$columnNamesName of the column or array of column names to be included into the index.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up