If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > view and insert/update?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-08, 21:18
poussypoussa poussypoussa is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
view and insert/update?

According to ANSI standard, is an INSERT to a view that will cause the new row to be invisible to the view allowed? For example the view is "SELECT * FROM clothes WHERE color='black'" and I insert a red shirt into that view.
Reply With Quote
  #2 (permalink)  
Old 02-17-08, 07:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
could you give some more context please?

which database system are you using?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 02-17-08, 11:59
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Does your homework explicitly state ANSI, or another standard? There is quite a difference.

-PatP
Reply With Quote
  #4 (permalink)  
Old 02-18-08, 04:33
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Have a look at the WITH [LOCAL|CASCADED] CHECK OPTION.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 02-20-08, 06:23
poussypoussa poussypoussa is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
Quote:
Originally Posted by stolze
Have a look at the WITH [LOCAL|CASCADED] CHECK OPTION.
Thanks, this is what I've been looking for
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On