This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-26. For the latest, interactive version please visit https://mariadb.com/kb/.

UPPER

Sintassi

UPPER(str)

Spiegazione

Restituisce la stringa str dopo aver convertito tutte le lettere minuscole in maiuscole, basandosi sulla mappatura del set di caratteri in uso. Quello predefinito è latin1 (cp1252 West European).

MariaDB [test]> SELECT UPPER(surname), givenname FROM users ORDER BY surname;
+----------------+------------+
| UPPER(surname) | givenname  |
+----------------+------------+
| ABEL           | Jacinto    |
| CASTRO         | Robert     |
| COSTA          | Phestos    |
| MOSCHELLA      | Hippolytos |
+----------------+------------+

UPPER() non fa nulla se viene usato su stringhe binarie (BINARY, VARBINARY o BLOB). La spiegazione di LOWER() mostra come convertire le stringhe binarie.

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.