如何设计数据库以保存数据只能由所有者修改或删除或更新 [英] How to design database to keep data can only be modified or delete or update by the owner

查看:70
本文介绍了如何设计数据库以保存数据只能由所有者修改或删除或更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何设计表格

当这些表格的数据只能由所有者修改时。

我有很多桌子,我想知道是不是没关系

创建一个表来保存数据

像ownerid,operationtime,operatemode(如更新,修改和插入)和tablename

解决这种情况。

非常感谢。

I would like to know how to design tables
when these tables'' data can only modified by the owner.
I have many tables and I wonder if it''s ok
to create a table to save datas
like ownerid, operatetime, operatemode(like update, modify and insert) and tablename
to solve this situation.
Thanks ahead.

推荐答案

嗨.....



简单检查用户ID,如果符合所有者ID,则给予他完全访问权限,否则不给他完全访问权限......只需借助隐藏/显示....
Hi.....

Simple check ID of user and if this meet with owner ID than give him full access otherwise not give him Full access... simply with the help of Hide/Show....


这篇关于如何设计数据库以保存数据只能由所有者修改或删除或更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆