|
|
Re: Can you use an Index in the definition or use of a view ? [message #2174 is a reply to message #2159] |
Wed, 26 June 2002 01:04 |
Mark Grimshaw
Messages: 73 Registered: June 2002
|
Member |
|
|
Mahesh,
Convinience ! Let me explain a little.
I am porting implementing an Oracle db that will be used by some Fortran code that is being ported (a lot of code). Within the Fortran code embedded SQL statements refer to the database through views and indexes. For example there is statements like this:
SELECT * FROM MyView1 WHERE COMPOSITE_INDEX = field1;field2;field3.
The convinience is due to the indexes being composites of up to 4 fields on the base table.
I can't remember the exact syntax but I have been 'told' that I must try and reduce the amount of code re-writing. Maybe I should re-phrase the question. Can I *reference* an index in the definition of a view ?
Mark
|
|
|