Table1存儲包括a,b,unit三個字段.用它存儲你所有數據,存儲在同一個表容易統計
建立視圖create view as select a,b from table1 where unit='总部'
create view as select a,b from table1 where unit='部门1'
create view as select a,b from table1 where unit='部门1'

然后用對每個視圖設你想設的權限.