How do we specify index to include or not during bind
process.



How do we specify index to include or not during bind process...

Answer / Deepak Singh

In DB2, you can specify an index for inclusion or exclusion during the bind process using the INCLUDE and EXCLUDE keywords respectively. Here is a simple example:

CREATE INDEX idx_mytable ON mytable (column1) INCLUDE (column2);
This will create an index on column1, but also include column2 in the index.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

Cursors can be declared in both working-storage & procedure division, Agreed. But is there any difference? If could you please suggest what is the difference. TIA

8 Answers   CGI, Wipro,


How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?

2 Answers   IBM, Tech Mahindra,


What is the physical storage length of the data types date, time, and timestamp?

1 Answers  


what is SPUFI ?

2 Answers  


How do you define a correlated name?

1 Answers  


How to resolve the -305 error code in DB2? And also please let me know, how to resolve the db2 error codes.

7 Answers   TCS,


What is the difference between bind and rebind in db2?

1 Answers  


On the create tablespace, what does the CLOSE parameter do?

1 Answers  


What is catalog database in db2?

1 Answers  


What is role in db2?

1 Answers  


Give a brief description of db2 isolation levels?

1 Answers  


how can u retrieve the data from null values using applicaion program.

3 Answers   TCS,


Categories