gpt4 book ai didi

PostgreSQL : Disallow the update of a column : how?

转载 作者:行者123 更新时间:2023-11-29 11:30:49 27 4
gpt4 key购买 nike

没有触发器的 PostgreSql 可能不允许更新列,只允许插入。

最佳答案

完全未经测试,但由于 Postgres SQL 支持列级权限,因此看起来可能是这样。 http://www.postgresql.org/docs/current/static/sql-grant.html

这个有用吗?

GRANT SELECT (col1, col2), INSERT(col1, col2), UPDATE (col1) ON mytable TO userX;

关于PostgreSQL : Disallow the update of a column : how?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3281706/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com