- select t.*, rowid from wfo_resource t where t.wfp_resource ='-1';
- select t.*, rowid from wfo_resource t where t.wfo_resource_id like '%resource-8%';
- select t.* from wfo_permission t where t.wfp_parent_permission like '%permission-8%';
- select * from wfo_role_perm t where t.wfp_permission like '%permission-8%';
- select * from wfo_perm_res t where t.wfp_resource like '%resource-8%';
- delete from wfo_resource t where t.wfo_resource_id like '%resource-7%';
- delete from wfo_permission t where t.wfp_parent_permission like '%permission-7%';
- delete from wfo_role_perm t where t.wfp_permission like '%permission-7%';
- delete from wfo_perm_res t where t.wfp_resource like '%resource-7%';
- /*
- * 删除一级目录及所属下属目录
- *
- * Daniel Zhou 2010-10-31
- */
本文转自danni505 51CTO博客,原文链接:http://blog.51cto.com/danni505/412993,如需转载请自行联系原作者