Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Supported SQL statements for data sharing writes on consumers - Amazon Redshift

Supported SQL statements for data sharing writes on consumers

The following Data Definition Language (DDL) statements are supported for data sharing with writes:

  • ALTER TABLE RENAME TO

  • ALTER TABLE RENAME COLUMN TO

  • ALTER TABLE ADD/DROP COLUMN

  • ALTER SCHEMA RENAME TO

  • { CREATE | DROP } SCHEMA

  • { CREATE | DROP | SHOW } TABLE

  • CREATE TABLE table_name AS

  • BEGIN | START TRANSACTION

  • END | COMMIT | ROLLBACK

  • TRUNCATE

The following Data Manipulation Language (DML) statements are supported for data sharing with writes:

  • SELECT

  • INSERT

  • INSERT INTO SELECT

  • UPDATE

  • DELETE

  • MERGE

  • COPY without COMPUPDATE

The following analyze statements are supported for data sharing with writes:

  • ANALYZE. The consumer runs USER ANALYZE and sends the stats to the producer.

  • Analyze activated by CTAS/COPY running on the consumer. This iIncludes multiplexing for small consumers.

  • Auto-analyze run on the producer after COPY.

The following permission statements are supported for data sharing with writes:

  • { GRANT | REVOKE } privilege_name ON OBJECT_TYPE object_name TO consumer_user

  • SHOW GRANTS. For more information, see SHOW GRANTS.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.