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
Parameter | Description | Version |
---|---|---|
$tableName | Name of table. | |
$columns | Array of columns in the index. |
Exceptions
Examples
© «Bitrix24», 2001-2024