Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number Index Vs Varchar2 index
Message
 
À
Tous
Information générale
Forum:
Oracle
Catégorie:
PL/SQL
Titre:
Number Index Vs Varchar2 index
Divers
Thread ID:
00510940
Message ID:
00510940
Vues:
57
Hello friends,

Time taken to execute the below query when the code is a number field.
Select * from oramembers where code=1; Time taken 20 Sec

Time taken to execute the below query when the code is a varchar2 field.
Select * from oramembers where code='1'; Time taken less than 1 Sec

Total No. of Records: 200,000

Why such a difference .... Any sugesstion.

Regrds,
Aashish
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform