Thank you Dieter. But i have few queries,
I created a table as below, (V2R5)
CREATE SET TABLE zam_product1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT
(product_id INTEGER,
product_name VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
sale_date DATE FORMAT 'dd-mm-yyyy', daily_sales DECIMAL(18,6))
PRIMARY INDEX ( product_id );
I created a view as below,
replace view zam_product_V2 as select
product_name
,sale_date
from jedi_mvn_db.zam_product1;
I granted update rights to user "jedi_cdw_dba" on column "product_name" as below,
grant select,update (product_name) on zam_product_v2 to jedi_cdw_dba;
then i see the rights given from dbc.allrights as below,
select * from dbc.allrights where tablename='zam_product_v2';
But in result i can see that update rights are given on column "sale_date"(2 nd column in view & 3rd column in table).
And when i run below query, it says sale_date column does not exist but it does exist in my view.
grant select,update (sale_date) on jedi_mvn_db.zam_product_v2to jedi_cdw_dba;
How view and its table is related to each other now? Please explain me the reason, since i am very much confused because of this.
Mahesh
Thank you Dieter. But i have few queries,
I created a table as below, (V2R5)
CREATE SET TABLE zam_product1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT
(product_id INTEGER,
product_name VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
sale_date DATE FORMAT 'dd-mm-yyyy', daily_sales DECIMAL(18,6))
PRIMARY INDEX ( product_id );
I created a view as below,
replace view zam_product_V2 as select
product_name
,sale_date
from jedi_mvn_db.zam_product1;
I granted update rights to user "jedi_cdw_dba" on column "product_name" as below,
grant select,update (product_name) on zam_product_v2 to jedi_cdw_dba;
then i see the rights given from dbc.allrights as below,
select * from dbc.allrights where tablename='zam_product_v2';
But in result i can see that update rights are given on column "sale_date"(2 nd column in view & 3rd column in table).
And when i run below query, it says sale_date column does not exist but it does exist in my view.
grant select,update (sale_date) on jedi_mvn_db.zam_product_v2to jedi_cdw_dba;
How view and its table is related to each other now? Please explain me the reason, since i am very much confused because of this.
Mahesh