473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to manipulate indexes?

19
[quote]

how to maipulate index numbers which is created by index command?
or how to retrieve the index numbers?

[quote]
Mar 14 '08 #1
4 1335
amitpatel66
2,367 Expert 2GB
[quote=jaanutn][quote]

how to maipulate index numbers which is created by index command?
or how to retrieve the index numbers?

Your requirement is not clear.
Please be more specific.
Mar 14 '08 #2
jaanutn
19
[quote=amitpatel66][quote=jaanutn]

how to maipulate index numbers which is created by index command?
or how to retrieve the index numbers?



Your requirement is not clear.
Please be more specific.

[code]

SQL> select * from bonus;

ENAME JOB SAL COMM
---------- --------- --------- ---------
Justin manager 12000 5
Jane Clerk 10000 3
Jean Atten 2000 2
Joe Kashier 2000 3

SQL> create index indexname on bonus(ename);

Index created.

[code]

[quote]

how can i retrieve values of indexname? can i use these index values for ny other purposes? in what way i able to manipulate these index values?
say an example nextval & currval is used for manipulate sequence numbers

[quote]
Mar 14 '08 #3
amitpatel66
2,367 Expert 2GB
Index does not have any value as such. Once creatd on any table, when you use that table in select query, the index will be used.

you can get details of your index using the below select query:

Expand|Select|Wrap|Line Numbers
  1.  
  2. select * from user_indexes where index_name = '<Your index Name>'
  3.  
  4.  
Mar 14 '08 #4
smruti
6
[quote]

how can i retrieve values of indexname? can i use these index values for ny other purposes? in what way i able to manipulate these index values?
say an example nextval & currval is used for manipulate sequence numbers

Try to run this
Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT * FROM user_indexes WHERE index_name = 'xyz' 
  3.  
  4.  

Hope it will fullfil ur requirements..

Smruti: Please make use of [code] TAGS when ever you post any source code in this forum. Using CODE TAGS increases the readability and clarity of the source code. For more on posting guidelines, please check http://www.thescripts.com/forum/faq....ing_guidelines
Mar 18 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Chris | last post by:
I heard that strings are immutable, but isn't there regardless a way to manipulate a string? I have a string that looks like this: a = '0123456789' But I want it to look like this: a = '0 - 2 -...
0
by: Paul | last post by:
I'm confused about something I did this week. I have an 8.1.7.4 database with tables partitioned by dates. I recently dropped my maxvalue tablespace, added a few more partitions for up-coming dates,...
1
by: Steve_CA | last post by:
Hi, The more I read, the more confused I'm getting ! (no wonder they say ignorance is bliss) I just got back from the bookstore and was flipping through some SQL Server Administration...
9
by: pheonix1t | last post by:
hello, I've been assigned to do performance tuning on an SQL2000 database (around 10GB in size, several instances). So far, I see a single RAID5 array, 4CPU (xeon 700MHZ), 4GB RAM. I see the...
4
by: mairhtin o'feannag | last post by:
Hello, I want to ask the question "how large is each of the indexes in a particular tablespace??" since I want to know which user-created indexes are taking up huge amounts of space. I used the...
14
by: Jeff | last post by:
This is the first time that I remember ever having too many indexes on a table, but it has happened. I have en employees table and store in many places, on tables, the id of the employee that...
17
by: boa | last post by:
I'm currently planning disk layouts and use for a new version of our database. The current version has all data and indexes in the default filegroup, placed on one big raid-5 array(6 drives) along...
10
by: lesperancer | last post by:
you start with a small application in access97, then you have more modules and more... and you reach the point where tables like 'item' and 'employee' reach the limit and you know there's more...
0
MMcCarthy
by: MMcCarthy | last post by:
The more data you include in your tables the more you will need to have indexes to search and sort that data. However, there is a balance between having enough indexes and too many. Too many...
1
by: rajakolluri | last post by:
Hi, This is Raja.....i am new joiner of this forum. here is my question. i strucked up in manipulating the tab indexes of image tags and buttons that are defined in html using java script. Here...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.