Tec&Cult
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Tec&Cult

Technologie et Culture
 
AccueilAccueil  PortailPortail  GalerieGalerie  Dernières imagesDernières images  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  
Rechercher
 
 

Résultats par :
 
Rechercher Recherche avancée
Derniers sujets
» Que faire à Paris le week-end du 15 août ?
SQL Index SQL Index EmptyJeu 11 Aoû - 11:20 par Admin

» T-shirt Mec de Paname
SQL Index SQL Index EmptyMer 3 Aoû - 17:04 par Admin

» dating web site uk dating free parent single
SQL Index SQL Index EmptyMer 3 Aoû - 10:56 par Invité

» rsvp dating website seeking bisexual
SQL Index SQL Index EmptyLun 1 Aoû - 2:08 par Invité

» dating french woman gay bottom seeking tops
SQL Index SQL Index EmptyDim 31 Juil - 21:59 par Invité

» dating philippine woman man seeking wealthy woman
SQL Index SQL Index EmptyVen 29 Juil - 12:51 par Invité

» dating lesbian n r cacee cobb dating lachey nick
SQL Index SQL Index EmptyVen 29 Juil - 3:17 par Invité

» single dating chat room relationship dating advice
SQL Index SQL Index EmptyJeu 28 Juil - 0:21 par Invité

» скачать порно тетя скачать порнофото семейное
SQL Index SQL Index EmptyJeu 21 Juil - 14:34 par Invité

Navigation
 Portail
 Index
 Membres
 Profil
 FAQ
 Rechercher
Forum
Partenaires
Forum gratuit


Tchat Blablaland
Le Deal du moment :
Cartes Pokémon : la prochaine extension ...
Voir le deal

Partagez | 
 

 SQL Index SQL Index

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Admin
Admin


Messages : 156
Date d'inscription : 20/05/2010

SQL Index SQL Index _
MessageSujet: SQL Index SQL Index   SQL Index SQL Index EmptyJeu 23 Juin - 15:56

http://toptech.geekaddict.net/
SQL Index

Index in sql is created on existing tables to retrieve the rows quickly.

When there are thousands of records in a table, retrieving information will take a long time. Therefore indexes are created on columns which are accessed frequently, so that the information can be retrieved quickly. Indexes can be created on a single column or a group of columns. When a index is created, it first sorts the data and then it assigns a ROWID for each row.

Syntax to create Index:

CREATE INDEX index_name
ON table_name (column_name1,column_name2...);

Syntax to create SQL unique Index:

CREATE UNIQUE INDEX index_name
ON table_name (column_name1,column_name2...);

index_name is the name of the INDEX.
table_name is the name of the table to which the indexed column belongs.
column_name1, column_name2.. is the list of columns which make up the INDEX.
In Oracle there are two types of SQL index namely, implicit and explicit.

Implicit Indexes:

They are created when a column is explicity defined with PRIMARY KEY, UNIQUE KEY Constraint.

Explicit Indexes:

They are created using the "create index.. " syntax.

NOTE:
1) Even though sql indexes are created to access the rows in the table quickly, they slow down DML operations like INSERT, UPDATE, DELETE on the table, because the indexes and tables both are updated along when a DML operation is performed. So use indexes only on columns which are used to search the table frequently.
2) Is is not required to create indexes on table which have less data.
3) In oracle database you can define up to sixteen (16) columns in an INDEX.
Revenir en haut Aller en bas
http://toptech.geekaddict.net
 

SQL Index SQL Index

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Tec&Cult :: Informatique :: Oracle :: Oracle PL SQL-
Sauter vers: