Unix Technical Forum

adding constraints to a view?

This is a discussion on adding constraints to a view? within the DB2 forums, part of the Database Server Software category; --> Can we add constraints to an existing view? DB2 V8.1 AIX 5.3 Cheers, San....


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:00 AM
shsandeep
 
Posts: n/a
Default adding constraints to a view?

Can we add constraints to an existing view?
DB2 V8.1 AIX 5.3

Cheers,
San.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:00 AM
Mark A
 
Posts: n/a
Default Re: adding constraints to a view?

"shsandeep" <sandeeprshah@gmail.com> wrote in message
news:fb904f6875e8053f3022eb45cadeeee7@localhost.ta lkaboutdatabases.com...
> Can we add constraints to an existing view?
> DB2 V8.1 AIX 5.3
>
> Cheers,
> San.
>


I assume you are talking about a CHECK OPTION constraint. They can only be
defined with the CREATE VIEW and not with ALTER VIEW.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:00 AM
Knut Stolze
 
Posts: n/a
Default Re: adding constraints to a view?

Mark A wrote:

> "shsandeep" <sandeeprshah@gmail.com> wrote in message
> news:fb904f6875e8053f3022eb45cadeeee7@localhost.ta lkaboutdatabases.com...
>> Can we add constraints to an existing view?
>> DB2 V8.1 AIX 5.3

>
> I assume you are talking about a CHECK OPTION constraint. They can only be
> defined with the CREATE VIEW and not with ALTER VIEW.


My guess would be that he talks about additional conditions in the WHERE
clause of the SELECT statement in the view. But the same considerations
apply there, i.e. you have to drop and re-create the view (and all the
objects that depend on it).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com