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

La funzione REPLACE

Sintassi

REPLACE(str, da_str, a_str)

Spiegazione

Restituisce la stringa str dopo aver sostituito tutte le occorrenze della stringa da_str con la stringa a_str. REPLACE() effettua una ricerca case-sensitive (cioè fa differenza tra le lettere minuscole e le maiuscole) quando cerca da_str.

Esempi

MariaDB [(none)]> SELECT REPLACE('www.mariadb.org', 'w', 'Ww');
+---------------------------------------+
| REPLACE('www.mariadb.org', 'w', 'Ww') |
+---------------------------------------+
| WwWwWw.mariadb.org                    |
+---------------------------------------+
1 row in set (0.00 sec)
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.