createPrimaryIndex
\Bitrix\Main\DB\Result public \Bitrix\Main\DB\Connection::createPrimaryIndex( string $tableName, string|array$columnNames );
This non-static method creates primary index of a column (columns).
Parameters
Parameter | Description | Version |
---|---|---|
$tableName | Table name | |
$columnNames | Column name or array of column names to be included into the index. |
Exceptions
Examples
© «Bitrix24», 2001-2024