answersLogoWhite

0

The CREATE INDEX statement is used to create indexes in tables.

Indexes allow the database application to find data fast; without reading the whole table.

Indexes

An index can be created in a table to find data more quickly and efficiently.

The users cannot see the indexes, they are just used to speed up searches/queries.

Note: Updating a table with indexes takes more time than updating a table without (because the indexes also need an update). So you should only create indexes on columns (and tables) that will be frequently searched against.

SQL CREATE INDEX Syntax

Creates an index on a table. Duplicate values are allowed:

CREATE INDEX index_name

ON table_name (column_name)

SQL CREATE UNIQUE INDEX Syntax

Creates a unique index on a table. Duplicate values are not allowed:

CREATE UNIQUE INDEX index_name

ON table_name (column_name)

Note: The syntax for creating indexes varies amongst different databases. Therefore: Check the syntax for creating indexes in your database

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What has the author Marilyn E Courtot written?

Marilyn E. Courtot has written: 'Microform indexing and retrieval systems' -- subject(s): Information storage and retrieval systems, Microforms 'An introduction to microform indexing and retrieval systems' -- subject(s): Abstracting and indexing services, Information storage and retrieval systems, Microforms


What are the physical consideration in dbms?

DBMS, Server, Storage media, Indexing, Encryption etc.. c


Best Document Scanning and Indexing Company?

Scanning and Indexing is the globally top-ranked, reliable, and the best offshore document/data scanning and indexing service provider. The firm in-houses a pool of expert professionals who ensure commendable data capturing, indexing and preserving, abiding by the effective measures. From document management to secured storage, our scanning and indexing solutions encompass the comprehensive information management system.


What has the author A R Mann written?

A. R. Mann has written: 'Computer aided indexing of U.D.C. schedules 662.6/.9 Fuels' -- subject(s): Automatic indexing, Chain indexing, Indexes, Universal decimal Classification 'Retrospec I' -- subject(s): Information storage and retrieval systems


Indexing method in milling machine?

Direct Indexing, Simple Indexing, and Angular Indexing


What is the difference between pre-indexing and post-indexing?

what is pre-indexing


What has the author Herman-K de Jaeger written?

Herman-K. de Jaeger has written: 'Information storage and retrieval without computer assistance' -- subject(s): Coordinate indexing 'Science information sources' -- subject(s): Bibliography, Bibliography of bibliographies, Information services, Reference books, Science 'Mechanische en electronische hulpmiddelen in de bibliotheek' -- subject(s): Copying processes, Information storage and retrieval systems 'Information storage and retrieval: the coordinate indexing principle, terminal digit and feature card systems' -- subject(s): Bibliography, Coordinate indexing, Information storage and retrieval systems


What has the author Dale B Baker written?

Dale B. Baker has written: 'USSR/USA scientific and technical information in perspective' -- subject(s): Abstracting and indexing, Abstracting and indexing services, Information storage and retrieval systems, Science, Technology


What has the author Stephen A Roberts written?

Stephen A. Roberts has written: 'A machine readable data base of social science serials' -- subject(s): Social sciences, Information storage and retrieval systems, Information services 'The planning of indexing and abstracting services in the social sciences' -- subject(s): Abstracting and indexing services, Social sciences, Abstracting and indexing


Pre indexing post indexing difference between?

what are the differents between preindexing and post indexing?


What has the author Andrew E Wessel written?

Andrew E. Wessel has written: 'The implementation of complex information systems' -- subject(s): Case studies, Electronic data processing, Information storage and retrieval systems 'The social use of information--ownership and access' -- subject(s): Computers, Freedom of information, Information storage and retrieval systems 'Computer-aided information retrieval' -- subject(s): Indexing, Information storage and retrieval systems 'Some thoughts on machine indexing' -- subject(s): Automatic indexing, Indexing 'The impact of the new technology on command system design' -- subject(s): Command and control systems 'An automated patent examination system: final report for the U.S. Patent Office' -- subject(s): Automation, Patent searching


What has the author Paul Smeeton Hunter written?

Paul Smeeton Hunter has written: 'An index to computer-produced standard interest profiles in chemistry, applied chemistry, chemical engineering and metallurgy' -- subject(s): Abstracting and indexing, Abstracting and indexing services, Chemistry, Information storage and retrieval systems