proposalbot 78ac771d84 Changes to ddm_umn from docs/doc-exports#613 (DDM UMN 1st version
DDM UMN 1st v

Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2024-01-08 13:37:20 +00:00

29 lines
851 B
ReStructuredText

:original_name: ddm-08-0007.html
.. _ddm-08-0007:
REPLACE
=======
REPLACE is used to insert rows into or replace rows in a table.
Common Syntax
-------------
.. code-block::
replace into table(col1,col2,col3)
values(value1,value2,value3)
Syntax Constraints
------------------
- PARTITION syntax is not supported.
- If an auto-increment table has no ID, you can insert a data record with a specified ID using REPLACE, but no ID is generated.
Use Constraints
---------------
- If the sharding key value in the REPLACE statement is invalid, data is routed to database shard 0 or table shard 0 by default.
- Do not use functions VERSION, DATABASE, or USER in the REPLACE statement. When you execute such as functions, you may not obtain the expected results because its results depend on whether it pushed to data nodes for execution.