Run the INSERT INTO statement to insert the data in the table to the associated OpenTSDB metric.
INSERT INTO TABLE_NAME SELECT * FROM SRC_TABLE; INSERT INTO TABLE_NAME VALUES(XXX);
Parameter |
Description |
---|---|
TABLE_NAME |
Indicates the name of the associated OpenTSDB table. |
SRC_TABLE |
Indicates the name of the table from which data is obtained. This parameter can be set to a name of a common table. |
Insert data into table opentsdb_table.
insert into opentsdb_table values('city1','futian','2018-05-03 00:00:00',21);