Skip to main content
Question

partition by cannot be used in create table as ...?

  • November 17, 2022
  • 1 reply
  • 3 views

1 reply

Bryan_H
Forum|alt.badge.img+2
  • Participating Frequently
  • November 17, 2022

CREATE TABLE AS SELECT allows segmentation but not partition. You can add partition later with ALTER TABLE x PARTITION BY partition-clause REORGANIZE.

https://www.vertica.com/docs/12.0.x/HTML/Content/Authoring/SQLReferenceManual/Statements/CREATETABLE.htm