Replaces each character from the source character set with the corresponding character in the target character set. Character-level translation.
STRINGDiperbarui: 13 Jun 2026TRANSLATE(value, source_characters, target_characters)The source string
The characters to be replaced
The replacement characters (positionally matched to source)
1 SELECT TRANSLATE('hello', 'elo', 'aXY') as result;
e->a, l->X, o->Y
1 SELECT TRANSLATE('Hello World', 'aeiouAEIOU', '') as result;
Removes all vowels.
1 SELECT TRANSLATE(name, 'áéíóúÁÉÍÓÚ', 'aeiouAEIOU') as normalized 2 FROM `project.dataset.names`;
Replaces accented characters with their unaccented equivalents.
Sudah paham TRANSLATE? Latih langsung di browser
Latihan interaktif, langsung di browser.