Skip to content

时间戳的插入与创建 (How to create and insert Timestamp/Time) #3736

Answered by qiaojialin
male168 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@qiaojialin
Comment options

@male168
Comment options

@qiaojialin
Comment options

@male168
Comment options

@jixuan1989
Comment options

Answer selected by HTHou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants