时间戳的插入与创建 (How to create and insert Timestamp/Time) #3736
-
(Python)请问如何插入和创建时间戳,并且时间戳 的类型和格式应该是什么样的,我创建了一些时间序列并插入了一些数据,读取时有一列Time,自动生成一些id。 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi, each unary timeseries has two columns (Timestamp/Time, Value). The data type of Timestamp/Time is long/INT64. Timestamp/Time is a build-in column in timeseries. It can not be created explicitly, you can only create timeseries and insert the timestamp. E.g., When doing queries, the Timestamp/Time will be printed automatically. The id is created by the client, not IoTDB. |
Beta Was this translation helpful? Give feedback.
-
时间戳的类型和格式,这里有详细说明:https://iotdb.apache.org/zh/UserGuide/Master/Data-Concept/Data-Type.html |
Beta Was this translation helpful? Give feedback.
Hi, each unary timeseries has two columns (Timestamp/Time, Value). The data type of Timestamp/Time is long/INT64.
Timestamp/Time is a build-in column in timeseries. It can not be created explicitly, you can only create timeseries and insert the timestamp.
E.g.,
insert into root.turbine1.d1(timestamp,s1) values(1,2)
This will insert a timestamp=1 and value=2 into timeseries root.turbine1.d1.s1.
When doing queries, the Timestamp/Time will be printed automatically.
The id is created by the client, not IoTDB.