Extract Path
This function extracts the path from a URL.
D SELECT extract_path('https://b.a.example.com/path/path') AS path;
ββββββββββββββ
β path β
β varchar β
ββββββββββββββ€
β /path/path β
ββββββββββββββ
D SELECT extract_path('example.com/path/path/image.png') AS path;
ββββββββββββββββββββββββ
β path β
β varchar β
ββββββββββββββββββββββββ€
β /path/path/image.png β
ββββββββββββββββββββββββLast updated
Was this helpful?