Documentation

renameTable

void public
\Bitrix\Main\DB\MysqlCommonConnection::renameTable(
 string $currentName,
 string $newName
);

This non-static method renames a table. The table must exit and the new name must be unique within the database.

Parameters

ParameterDescriptionVersion
$currentNameCurrent table name.
$newNameNew table name.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up