mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
22 lines
958 B
SQL
22 lines
958 B
SQL
SELECT translate('Hello? world.', '.?', '!,');
|
|
SELECT translate('gtcttgcaag', 'ACGTacgt', 'TGCAtgca');
|
|
SELECT translate(toString(number), '0123456789', 'abcdefghij') FROM numbers(987654, 5);
|
|
|
|
SELECT translateUTF8('HôtelGenèv', 'Ááéíóúôè', 'aaeiouoe');
|
|
SELECT translateUTF8('中文内码', '久标准中文内码', 'ユニコードとは');
|
|
SELECT translateUTF8(toString(number), '1234567890', 'ዩय𐑿𐐏নՅðй¿ค') FROM numbers(987654, 5);
|
|
|
|
SELECT translate('abc', '', '');
|
|
SELECT translateUTF8('abc', '', '');
|
|
|
|
SELECT translate('abc', 'Ááéíóúôè', 'aaeiouoe'); -- { serverError BAD_ARGUMENTS }
|
|
SELECT translateUTF8('abc', 'efg', '');
|
|
|
|
SELECT translateUTF8('中文内码', '中文', '');
|
|
SELECT translate('aAbBcC', 'abc', '12');
|
|
|
|
SELECT translate('aAbBcC', 'abc', '1235');
|
|
SELECT translate('aAbBcC', 'abc', '');
|
|
SELECT translate('abc', 'abc', '');
|
|
SELECT translate('aAbBcC', '中文内码', '12'); -- { serverError BAD_ARGUMENTS }
|