-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: fix date and time type #2254
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lumianph
approved these changes
Jul 28, 2022
@michelle-qinqin |
|
||
每个时间类型有一个有效值范围和一个NULL值,当指定不合法不能表示的值时使用NULL值。 | ||
|
||
| 类型 | 大小 (bytes) | 范围 | 格式 | 用途 | | ||
| :-------- | :----------- | :----------------------------------------------------------- | :-------------- | :----------------------- | | ||
| DATE | 4 | 1900-01-01 ~ | YYYY-MM-DD | 日期值 | | ||
| TIMESTAMP | 8 | 1970-01-01 00:00:00/2038结束时间是第 **2147483647** 秒,北京时间 **2038-1-19 11:14:07**,格林尼治时间 2038年1月19日 凌晨 03:14:07 | YYYYMMDD HHMMSS | 混合日期和时间值,时间戳 | | ||
| TIMESTAMP | 8 | 从 ‘1970-01-01 00:00:01.000000’ UTC 到 ‘2038-01-19 03:14:07.999999’(2038-01-19 11:14:07.999999 GMT) | 在线: int64, 离线: int64 或 'yyyy-MM-dd'T'HH:mm:ss[.SSS][XXX]' | 混合日期和时间值,时间戳 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请问命令行的离线模式下, 也可以使用'yyyy-MM-dd'T'HH:mm:ss[.SSS][XXX]'格式输入嘛。之前好像说是sdk用object,cli需要转成毫秒时间戳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLI 离线并不支持insert
aceforeverd
reviewed
Jul 30, 2022
aceforeverd
approved these changes
Aug 1, 2022
liuceyi
added a commit
to liuceyi/OpenMLDB
that referenced
this pull request
Aug 1, 2022
1. Add time units to comment 2. Add time units to user doc 3. Correct the typo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2172