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.
如果我创建了一个只读用户,但想给他们写权限,我该如何在 CockroachDB 中做到这一点?
您可以随时通过 SQL 命令系列简单地授予用户新权限,GRANT如.GRANT
GRANT
例如,要授予用户jordan INSERT对数据库中所有表的权限,test请在 SQL shell 中运行以下命令:
jordan
INSERT
test
GRANT INSERT ON TABLE test.* TO jordan