Guest_imported
New member
- Jan 1, 1970
- 0
I am encountering difficulties when I try to update my view
I define it as follows :-
isql -Usa -Ppassword -S$AR_ENV_SYB_SERV_NAME << !
go
drop view v_account_data
go
create view v_account_data
as
select t_account.accnt accnt,
(select t_account.curr) curr,
(select t_account.stat) stat from t_account
group by t_account.accnt
go
grant select on v_account_data to PUBLIC
go
update v_account_data
set stat = "N"
go
!
But when I run it : -
sh view_accts
View 'v_account_data' is not updatable because a field of the view is derived or constant.
I am using SYBASE.
Can anyone tell me what I am doing wrong ?
I define it as follows :-
isql -Usa -Ppassword -S$AR_ENV_SYB_SERV_NAME << !
go
drop view v_account_data
go
create view v_account_data
as
select t_account.accnt accnt,
(select t_account.curr) curr,
(select t_account.stat) stat from t_account
group by t_account.accnt
go
grant select on v_account_data to PUBLIC
go
update v_account_data
set stat = "N"
go
!
But when I run it : -
sh view_accts
View 'v_account_data' is not updatable because a field of the view is derived or constant.
I am using SYBASE.
Can anyone tell me what I am doing wrong ?