Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
UPLOAD FILE TO STAGE
On this page
The UPLOAD FILE TO STAGE command uploads a file at the specified path within a Stage.
Syntax
UPLOAD FILE TO STAGE '<stage_path>'
[ { IN GROUP { ID '<deployment_ID>' | '<deployment_name>' } | IN { ID '<deployment_ID>' | '<deployment_name>' } } ]
FROM '<local_path>' [ OVERWRITE ]Arguments
-
stage_: The path in the Stage where the file is uploaded.path It must end with a trailing /. -
deployment_,ID deployment_: The ID or name of the deployment (cluster group) in which the Stage is attached.name -
local_: Specifies the path to the file in the local directory.path
Remarks
-
If the
OVERWRITEclause is specified, any existing file with the same name at the specified path is overwritten. -
The
INandIN GROUPclauses specify the ID or the name of the deployment in which the Stage is attached.
Example
The following command uploads a file to the Stage attached to the deployment named s2-group and overwrites any existing files with the same name at the specified path:
UPLOAD FILE TO STAGE '/data/stats.csv' IN 's2-group'FROM '/tmp/stats.csv' OVERWRITE;
Last modified: