Documentation

isIndexExists

boolean public
\Bitrix\Main\DB\MysqlCommonConnection::isIndexExists(
 string $tableName,
 array $columns
);

This non-static method checks if an index exists.

Actual columns in the index may differ from requested. You can use "prefix" of actual index columns in the $columns.

Parameters

ParameterDescriptionVersion
$tableNameName of table.
$columnsArray of columns in the index.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up