Documentation

isIndexExists

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

This non-static method checks existence of index.

Actual content of index columns can vary from the queried columns. Prefix for actual index columns can be used in $columns.

Parameters

ParameterDescriptionVersion
$tableNameTable name.
$columnsArray of columns within index.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up