forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
7.0 KiB
7.0 KiB
Inserting Data to the OpenTSDB Table
Function
Run the INSERT INTO statement to insert the data in the DLI table to the associated OpenTSDB metric.
Syntax
1 | INSERT INTO TABLE TABLE_NAME SELECT * FROM DLI_TABLE; |
1 | INSERT INTO TABLE TABLE_NAME VALUES(XXX); |
Keywords
Parameter |
Description |
---|---|
TABLE_NAME |
Name of the associated OpenTSDB table. |
DLI_TABLE |
Name of the DLI table created. |
Precautions
- The inserted data cannot be null. If the inserted data is the same as the original data or only the value is different, the inserted data overwrites the original data.
- INSERT OVERWRITE is not supported.
- You are advised not to concurrently insert data into a table. If you concurrently insert data into a table, there is a possibility that conflicts occur, leading to failed data insertion.
- The TIMESTAMP format supports only yyyy-MM-dd hh:mm:ss.
Example
1 | INSERT INTO TABLE opentsdb_table VALUES('xxx','xxx','2018-05-03 00:00:00',21); |
Parent topic: Creating a Datasource Connection with an OpenTSDB Table