📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

CREATE PIPE



Creates a pipe backed by a COPY INTO <table> statement.

Syntax

CREATE PIPE [ IF NOT EXISTS ] <name> [ AUTO_INGEST = TRUE ] [ COMMENT = '<comment>' | COMMENTS = '<comment>' ] AS COPY INTO <table> ...

Parameters

ParameterDescription
IF NOT EXISTSOptional. Succeeds without changes if the pipe already exists.
AUTO_INGEST = TRUEOptional. Enables automatic ingestion.
COMMENT / COMMENTSOptional pipe comment.
AS COPY INTO ...The COPY INTO <table> statement executed by the pipe.

Example

CREATE PIPE IF NOT EXISTS my_pipe AUTO_INGEST = TRUE COMMENTS = 'load staged files into target table' AS COPY INTO my_table FROM @my_stage;

Was this page helpful?