how can you access index
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pandu
first of all create index
create index<indexname> on <tablename>(<columnname>);
after that we have to access to that by
Select * from <indexname>
Correct me is am i wrong...
Thank You.
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / ashok kumar
we generally use the folling query for create index
CREAT INDEX <index name> on <table name>(cols1,cols2,...)
for accessing columes :
SELECT ENAME FROM EMP
WHERE cols1 and cols2
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raghu
first we have to def indexs.
select indexname from sysibm.sysindexs where tbname = tablename
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a dbrm in db2?
select 100 records from million records ?
Can we insert update delete in view?
Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?
What is Call attach facility? How does it work?
What do you need to do before you do EXPLAIN ?
What is ibm db2 connect?
wht displays the number of times a query modified ?
Explain packages.
What is meant by isolation level?
How to get Top 10 Salaries from a Table
What is the difference between using bind () and rebind () methods of naming class?