HPE NonStop SQL/MX Error – 3218 A table reference cannot contain DELETE or UPDATE in a CREATE VIEW statement.

In this blog post, let’s learn about the error message “3218 A table reference cannot contain DELETE or UPDATE in a CREATE VIEW statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3218 A table reference cannot contain DELETE or UPDATE in a CREATE VIEW statement.

Reason for the Error

A CREATE VIEW statement was issued with a DELETE or UPDATE operation as a table reference.

Solution

Do not use DELETE or UPDATE in a CREATE VIEW statement