security - SQL statement not correct -
if want account albert retrieve or modify relation except dependent , can grant of these privileges other users, how that?
i tried grant function so:
grant select employee albert grant select department albert grant select dept_locations albert grant select project albert grant select works_on albert
but how let albert modify?
schema:
employee (fname, minit, lname, ssn, bdate, address, sex, salary, super_ssn, dno) department (dname, dnumber, mgr_ssn, mgr_start_date) dept_locations(dnumber, dlocation) project(pname, pnumber, plocation, dnum) works_on(essn, pno, hours) dependent(essn, dependent_name, sex, bdate, relationship)
so far grant select rights. want grant update, too. , maybe insert , delete?
grant select, update, insert, delete on employee albert ; ...
Comments
Post a Comment