Re: Can I create an index on a view?
- From: "Tim M" <scott1328@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 11 May 2006 20:21:20 -0500
"Shirley" <smunoz@xxxxxxxxxxx> wrote in message
news:1147390524.565037.256790@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We are running DB2 on iSeries V5R2.No. although you can specify a view in the from clause of a select
Using AQUA DATA STUDIO with a connection to our iSeries, I created a
view using SQL and I am trying to create an index on this view using
the code below.
CREATE INDEX reports.Ivendorname ON reports.transbyvendor05
(vendorname)
However I get the following error:
Error: [SQL0156] TRANSBYVENDOR05 in REPORTS not a table.
Is it possible to create an index on a view? If not, what other
options
do I have to improve
the performance of my queries on the view I created?
Thanks, Shirley..
statment and specify an order by clause.
.
- Follow-Ups:
- Re: Can I create an index on a view?
- From: wildfish
- Re: Can I create an index on a view?
- References:
- Can I create an index on a view?
- From: Shirley
- Can I create an index on a view?
- Prev by Date: Writing to an iSeries DVD-RAM drive for our i5
- Next by Date: Re: CPF3888
- Previous by thread: Can I create an index on a view?
- Next by thread: Re: Can I create an index on a view?
- Index(es):
Relevant Pages
|