This is just for a uni assignment. Instead of doing this:
DENY DELETE ON SECRETAGENT, SECRETMISSION, AGENTMISSION TO A1;
DENY DELETE ON SECRETAGENT, SECRETMISSION, AGENTMISSION TO A2;
DENY DELETE ON SECRETAGENT, SECRETMISSION, AGENTMISSION TO A3;
is it possible to just write one line like this?
DENY DELETE ON SECRETAGENT, SECRETMISSION, AGENTMISSION TO A1, A2, A3;
I haven't found any site that specifies whether this can or cannot be done.
It's all in the manual:
The
[]
mean, it's optional, so yes, you can do it in one line for multiple users, but not for multiple named objects (, but for multiple objects with wildcards, likeON databasename.*
).