db_add_index

6 database.mysql-common.inc db_add_index(&$ret, $table, $name, $fields)
6 database.pgsql.inc db_add_index(&$ret, $table, $name, $fields)
7 database.inc db_add_index($table, $name, $fields)
8 database.inc db_add_index($table, $name, $fields)

Add an index.

Parameters

$ret: Array to which query results will be added.

$table: The table to be altered.

$name: The name of the index.

$fields: An array of field names.

Related topics

236 functions call db_add_index()

File

drupal/includes/database.pgsql.inc, line 813
Database interface code for PostgreSQL database servers.

Code

<?php
function db_add_index(&$ret, $table, $name, $fields) {
  $ret[] = update_sql(_db_create_index_sql($table, $name, $fields));
}
?>