diff --git a/docs/src/main/sphinx/connector/ignite.md b/docs/src/main/sphinx/connector/ignite.md index f6e14a7a637b..77793bfee44f 100644 --- a/docs/src/main/sphinx/connector/ignite.md +++ b/docs/src/main/sphinx/connector/ignite.md @@ -187,6 +187,9 @@ statements, the connector supports the following features: - {doc}`/sql/drop-table` - {doc}`/sql/alter-table` +```{include} sql-update-limitation.fragment +``` + ```{include} alter-table-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/mariadb.md b/docs/src/main/sphinx/connector/mariadb.md index 78f1b609cc89..60471a62fe53 100644 --- a/docs/src/main/sphinx/connector/mariadb.md +++ b/docs/src/main/sphinx/connector/mariadb.md @@ -293,6 +293,9 @@ statements, the connector supports the following features: - {doc}`/sql/create-schema` - {doc}`/sql/drop-schema` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/mysql.md b/docs/src/main/sphinx/connector/mysql.md index 64b675779da8..cd1966ea5c29 100644 --- a/docs/src/main/sphinx/connector/mysql.md +++ b/docs/src/main/sphinx/connector/mysql.md @@ -336,6 +336,9 @@ the following statements: - {doc}`/sql/create-schema` - {doc}`/sql/drop-schema` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/oracle.md b/docs/src/main/sphinx/connector/oracle.md index effc06af2dc3..4c42bf339cc0 100644 --- a/docs/src/main/sphinx/connector/oracle.md +++ b/docs/src/main/sphinx/connector/oracle.md @@ -422,6 +422,9 @@ supports the following statements: - {doc}`/sql/alter-table` - {doc}`/sql/comment` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/postgresql.md b/docs/src/main/sphinx/connector/postgresql.md index 583a1136ec5c..9ca7f46fed81 100644 --- a/docs/src/main/sphinx/connector/postgresql.md +++ b/docs/src/main/sphinx/connector/postgresql.md @@ -352,6 +352,9 @@ statements, the connector supports the following features: - {doc}`/sql/truncate` - {ref}`sql-schema-table-management` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/redshift.md b/docs/src/main/sphinx/connector/redshift.md index 54c312c8db77..84d9a14055e2 100644 --- a/docs/src/main/sphinx/connector/redshift.md +++ b/docs/src/main/sphinx/connector/redshift.md @@ -150,6 +150,9 @@ statements, the connector supports the following features: - {doc}`/sql/truncate` - {ref}`sql-schema-table-management` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/singlestore.md b/docs/src/main/sphinx/connector/singlestore.md index 45966334b3c5..b3512d9f094e 100644 --- a/docs/src/main/sphinx/connector/singlestore.md +++ b/docs/src/main/sphinx/connector/singlestore.md @@ -335,6 +335,9 @@ statements, the connector supports the following features: - {doc}`/sql/create-schema` - {doc}`/sql/drop-schema` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ``` diff --git a/docs/src/main/sphinx/connector/sql-update-limitation.fragment b/docs/src/main/sphinx/connector/sql-update-limitation.fragment new file mode 100644 index 000000000000..a929d56325d3 --- /dev/null +++ b/docs/src/main/sphinx/connector/sql-update-limitation.fragment @@ -0,0 +1,33 @@ +### UPDATE + +Only `UPDATE` statements with constant assignments and predicates are +supported. For example, the following statement is supported because the values +assigned are constants: + +```sql +UPDATE table SET col1 = 1 WHERE col3 = 1 +``` + +Arithmetic expressions, function calls, and other non-constant `UPDATE` +statements are not supported. For example, the following statement is not +supported because arithmetic expressions cannot be used with the `SET` +command: + +```sql +UPDATE table SET col1 = col2 + 2 WHERE col3 = 1 +``` + +The `=`, `!=`, `>`, `<`, `>=`, `<=`, `IN`, `NOT IN` operators are supported in +predicates. The following statement is not supported because the `AND` operator +cannot be used in predicates: + +```sql +UPDATE table SET col1 = 1 WHERE col3 = 1 AND col2 = 3 +``` + +All column values of a table row cannot be updated simultaneously. For a three +column table, the following statement is not supported: + +```sql +UPDATE table SET col1 = 1, col2 = 2, col3 = 3 WHERE col3 = 1 +``` diff --git a/docs/src/main/sphinx/connector/sqlserver.md b/docs/src/main/sphinx/connector/sqlserver.md index 62477fcb8dc3..592141a76e0f 100644 --- a/docs/src/main/sphinx/connector/sqlserver.md +++ b/docs/src/main/sphinx/connector/sqlserver.md @@ -339,6 +339,9 @@ supports the following features: - {doc}`/sql/truncate` - {ref}`sql-schema-table-management` +```{include} sql-update-limitation.fragment +``` + ```{include} sql-delete-limitation.fragment ```