ClickHouse/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql

16 lines
409 B
MySQL
Raw Normal View History

2016-12-02 23:29:16 +00:00
DROP TABLE IF EXISTS test.replaceall;
CREATE TABLE test.replaceall (str FixedString(3)) ENGINE = Memory;
INSERT INTO test.replaceall VALUES ('foo');
INSERT INTO test.replaceall VALUES ('boa');
INSERT INTO test.replaceall VALUES ('bar');
INSERT INTO test.replaceall VALUES ('bao');
SELECT
str,
replaceAll(str, 'o', '*') AS replaced
FROM test.replaceall
ORDER BY str ASC;
DROP TABLE test.replaceall;