Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在临时表上记录更改记录的用户?任何解决方法?
不,不是——没有预先确定的机制。这可以追溯到数据库 - 当遵循现代架构时 - 不知道。
看,我们生活在一个使用服务器(多层应用程序)和连接池的世界中。因此,通常有一个用户帐户连接到数据库服务器(“服务器”帐户)并进行所有更改。所以登录的用户不会给你任何信息。数据库中的用户参考字段是应用程序的责任。
所以,答案是否定的——没有自动记录用户做出改变的机制。