在IBM i的Db2中,我可以创建这样的行权限。
def Cl(y):
Td = 420
tt = Td/y
fx = lambda x: x**4*np.exp(x)/(np.exp(x)-1)**2
[cl,err] = 9*N*kb*(y/Td)**3*quad(fx,0,tt)
return cl
如果我停用行访问控制,规则似乎消失了,但是如果我激活旧规则又回来了。
-- enable row access control
ALTER TABLE QIWS.QCUSTCDT ACTIVATE ROW ACCESS CONTROL;
-- create permission MYPERMISSION999
CREATE PERMISSION MYPERMISSION999 ON SALES.ORDHED
FOR ROWS WHERE VERIFY_GROUP_FOR_USER(SESSION_USER,'MYGROUP') = 1
AND SCODE = SESSION_USER
ENFORCED FOR ALL ACCESS
ENABLE;
COMMIT;
ALTER TABLE SALES.ORDHED ACTIVATE ROW ACCESS CONTROL;
COMMIT;
答案 0 :(得分:3)
DROP PERMISSION MYPERMISSION999;
应该这样做