ClickHouse/dbms/tests/queries/0_stateless/00938_basename.sql
2019-04-29 17:18:02 +07:00

6 lines
221 B
SQL

SELECT basename('/usr/bin/bash');
SELECT basename('/usr/bin/bash/');
SELECT basename('bash');
SELECT basename('C:\\\\Users\\Documents\\test_file');
SELECT basename(path('http://example.com/folder_1/folder_2/script.php'))