J
|
jeyoung 7/31/2006 |
Update data |
C
|
clig 11/26/2006 |
Update data There are some restrictions for updating data through a view. A view cannot modify more than one table. So if a view is based on two or more tables, and you try to run a DELETE statement, it will fail. If you run an UPDATE or INSERT statement, all columns referenced in the statement must belong to the same table. It's not possible to update, insert or delete data in a view with a DISTINCT clause. You cannot update, insert or delete data in a view that is using GROUP BY. It's not possible to update, insert or delete data in a view that contains calculated columns. Also be aware of columns that cannot contain NULL. If it has no default value, and is not referenced in the view, you will not be able to update the column. Hope this helps! Julian
|