drop_index [ WordPress Function ]
drop_index ( $table, $index )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
{@internal Missing Short Description}}
{@internal Missing Long Description}}
Source
<?php
function drop_index($table, $index) {
global $wpdb;
$wpdb->hide_errors();
$wpdb->query("ALTER TABLE `$table` DROP INDEX `$index`");
// Now we need to take out all the extra ones we may have created
for ($i = 0; $i < 25; $i++) {
$wpdb->query("ALTER TABLE `$table` DROP INDEX `{$index}_$i`");
}
$wpdb->show_errors();
return true;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- SQL DROP INDEX, DROP TABLE, DROP DATABASE
SQL DROP INDEX, DROP TABLE, and DROP DATABASE. « Previous · Next Chapter » ... The DROP INDEX statement is used to delete an index in a table.
www.w3schools.com - DROP INDEX (Transact-SQL)
The syntax defined in will be removed in a future version of Microsoft SQL Server. Avoid using this syntax in new development work, and plan to modify ...
msdn.microsoft.com - drop_index(7): remove index - Linux man page
DROP INDEX drops an existing index from the database system. To execute this command you must be the owner of the index.
linux.die.net - Liquibase | Database Refactoring | manual:drop_index
Jun 26, 2010 ... Works on Oracle on Liquibase 1.6; Does not work for SQL Server. –> <dropIndex indexName="idx_user_username"/>. <!– Works on Oracle ...
www.liquibase.org