Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2006

Tip: Looking for answers? Try searching our database.

adding constraints to a view?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shsandeep - 10 May 2006 06:22 GMT
Can we add constraints to an existing view?
DB2 V8.1 AIX 5.3

Cheers,
San.
Mark A - 10 May 2006 07:10 GMT
> 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.
Knut Stolze - 10 May 2006 07:59 GMT
>> 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).

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.