>> Hi Mark,
>> That doesnt answer my question. I dont have any table/view but still I
[quoted text clipped - 6 lines]
> No, it does not give a database error. You can create the alias before the
> table, or you can drop the table and the alias still exists.
The "technical" reason why this works is that teh ALIAS contains no
information that requires the existence of the underlying objects.
It's just a forward pointer.
By contrast a view needs to be able to derive the column names and
column types, so it requires teh underlying table to exists.
Note that You can't use the alias in e.g. a view unless the underlying
object exists.
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference
http://www.ibm.com/software/data/ondemandbusiness/conf2006/
rAinDeEr - 22 Jun 2006 16:37 GMT
> >> Hi Mark,
> >> That doesnt answer my question. I dont have any table/view but still I
[quoted text clipped - 23 lines]
> IOD Conference
> http://www.ibm.com/software/data/ondemandbusiness/conf2006/
Hi,
Agree its a forward pointer. But if i Dont have any thg to point why
does it create a pointer....
<<Sigh>>...May be there is lot of Technical Design involved..lot of
advantages that I dont see...will come back 2morrow and think about
it...
Thanks Mark , Serge
Regards,
rAinDeEr
Ian - 22 Jun 2006 17:32 GMT
> Agree its a forward pointer. But if i Dont have any thg to point why
> does it create a pointer....
>
> <<Sigh>>...May be there is lot of Technical Design involved..lot of
> advantages that I dont see...will come back 2morrow and think about
> it...
Why is this a problem?
Realize that aliases are "special" objects. If you try and do a select
from an alias that points to nothing, you will get SQL0204N (table does
not exist), but the error message refers to the table referenced by the
alias, not the alias.
Also, if you say, "drop table my.alias", would you expect DB2 to drop
the alias or the table?