Drop Index statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Deletes an index from a table. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Drop Index table( column ) 

table is the name of an open table.

column is the name of a column in that table.

Description

The Drop Index statement deletes an existing index from an open table. Dropping an index reduces the amount of disk space occupied by a table. (To re-create that index at a later time, issue a Create Index statement.)

Note: MapInfo Pro cannot drop an index if the table has unsaved edits. Use the Commit Table statement to save edits.

The Drop Index statement takes effect immediately; no save operation is required. You cannot undo the effect of a Drop Index statement by selecting Revert Table or Undo commands. Similarly, the MapBasic Rollback statement will not undo the effect of a Drop Index statement.

Example

The following example deletes the index from the Name field of the World table.

Open Table "world"
Drop Index world(name) 

See Also:

Create Index statement