SQL Flashcards

1
Q

SQL - Nutzer anlegen

A

CREATE USER username IDENTIFIED BY password;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQL - Nutzer löschen

A

DROP USER username [CASCADE];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SQL - Nutzer umbenennen

A

RENAME USER username TO neuername;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQL - Rollen anlegen/löschen

A

CREATE ROLE rollenname;

DROP ROLE rollenname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SQL - Rolle zuweisen

A

GRANT rollenname TO username username;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SQL- Rechte vergeben

A

GRANT rechte ON objekt TO nutzer [WITH GRANT OPTION];

rechte: SELECT, INSERT, DELETE, UPDATE, REFERENCES oder ALL.

WITH GRANT OPTION der Nutzer darf seine Rechte weitergeben

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQL - Rechte widerrufen

A

REVOKE [GRANT OPTION FOR] rechte ON objekt FROM nutzer;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly