DOWNLOAD Function

Downloads a file from an HTTP/HTTPS site and returns its contents as a string.

Syntax

DOWNLOAD(url)

Parameters

Return Value

A string containing the contents of the file.

Example

-- Prints "Sitemap: https://sqlnotebook.com/sitemap.txt"
PRINT DOWNLOAD('https://sqlnotebook.com/robots.txt')