CURRENT_USER

Sintassi

CURRENT_USER, CURRENT_USER()

Spiegazione

Restituisce la combinazione del nome utente e del nome host dell'account usato per autenticare il client in uso. Questo account determina tutti i privilegi di accesso. Il valore restituito è una stringa nel set di caratteri utf8.

Il valore di CURRENT_USER() può essere differente da quello di USER().

Esempi

SELECT CURRENT_USER(), USER();
+----------------+----------------------+
| CURRENT_USER() | USER()               |
+----------------+----------------------+
| amarokuser@%   | amarokuser@localhost |
+----------------+----------------------+

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.