how can you access index

Answer Posted / mani

After creating index by using CREATE command
CREATE UNIQUE INDEX IDX_EMP ON EMPLOYEE(EMP_ID)

To retreive index:

SELECT INDEX_NAME FROM USER_INDEX WHERE TBNAME='EMPLOYEE'

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about cursor stability?

696


Can one database have multiple instances?

663


What is db2 catalog database?

659


My sql statement select avg(salary) from emp yields inaccurate results. Why?

736


On which levels locks can be applied?

751






How to access db2 tables in mainframe?

696


What types of tables are there in the db2 database?

654


Explain the contention situations caused by locks?

681


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7904


How do I optimize a query in db2?

710


Define declaration generator (dclgen).

760


What is check constraint. Explain with example.

729


What are the full forms of spufi and dclgen and why are they used?

734


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

1723


What is ibm db2 used for?

697