I have table A and table B, where B is the partitioned table of A using a field called X.
When I want to insert data from A to B, I usually execute the following statement:
INSERT INTO TABLE B PARTITION(X=x) SELECT <columnsFromA> FROM A WHERE X=x
Now what I want to achieve is being able to insert a range of X, let's say x1, x2, x3... How can I achieve this in one single statement?