In this blog post, let’s learn about the error message “1105 CREATE TABLE LIKE statement cannot contain both HORIZONTAL PARTITIONS and STORE BY clauses.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
1105 CREATE TABLE LIKE statement cannot contain both HORIZONTAL PARTITIONS and STORE BY clauses.
Reason for the Error
A CREATE TABLE…LIKE statement specifies both the WITH PARTITIONS and STORE BY clause, which is not allowed.
Solution
Correct the error and resubmit