Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number Index Vs Varchar2 index
Message
 
To
All
General information
Forum:
Oracle
Category:
PL/SQL
Title:
Number Index Vs Varchar2 index
Miscellaneous
Thread ID:
00510940
Message ID:
00510940
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform