Skip to content

Commit

Permalink
fix: change alias for timestamp(0) to TimestampSecond (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
v0y4g3r authored Aug 30, 2024
1 parent f847a33 commit 0285a6b
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/reference/sql/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ For users migrating from MySQL or PostgreSQL to GreptimeDB, GreptimeDB supports
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

You can use these alias types when creating tables.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampMillisecond`.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampSecond`.

```sql
CREATE TABLE alias_types (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ INSERT INTO bools(b) VALUES (TRUE), (FALSE);
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

在创建表时也可以使用这些别名类型。
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampMillisecond`
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampSecond`

```sql
CREATE TABLE alias_types (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ INSERT INTO bools(b) VALUES (TRUE), (FALSE);
| `TimestampNanosecond`| `Timestamp_ns`, `Timestamp(9)` |

在创建表时也可以使用这些别名类型。
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampMillisecond`
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampSecond`

```sql
CREATE TABLE alias_types (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ INSERT INTO bools(b) VALUES (TRUE), (FALSE);
| `TimestampNanosecond`| `Timestamp_ns`, `Timestamp(9)` |

在创建表时也可以使用这些别名类型。
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampMillisecond`
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampSecond`

```sql
CREATE TABLE alias_types (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ INSERT INTO bools(b) VALUES (TRUE), (FALSE);
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

在创建表时也可以使用这些别名类型。
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampMillisecond`
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampSecond`

```sql
CREATE TABLE alias_types (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ INSERT INTO bools(b) VALUES (TRUE), (FALSE);
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

在创建表时也可以使用这些别名类型。
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampMillisecond`
例如,使用 `Varchar` 代替 `String`,使用 `Double` 代替 `Float64`,使用 `Timestamp(0)` 代替 `TimestampSecond`

```sql
CREATE TABLE alias_types (
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.6/reference/sql/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ For users migrating from MySQL or PostgreSQL to GreptimeDB, GreptimeDB supports
| `TimestampNanosecond`| `Timestamp_ns`, `Timestamp(9)` |

You can use these alias types when creating tables.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampMillisecond`.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampSecond`.

```sql
CREATE TABLE alias_types (
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.7/reference/sql/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ For users migrating from MySQL or PostgreSQL to GreptimeDB, GreptimeDB supports
| `TimestampNanosecond`| `Timestamp_ns`, `Timestamp(9)` |

You can use these alias types when creating tables.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampMillisecond`.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampSecond`.

```sql
CREATE TABLE alias_types (
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.8/reference/sql/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ For users migrating from MySQL or PostgreSQL to GreptimeDB, GreptimeDB supports
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

You can use these alias types when creating tables.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampMillisecond`.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampSecond`.

```sql
CREATE TABLE alias_types (
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.9/reference/sql/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ For users migrating from MySQL or PostgreSQL to GreptimeDB, GreptimeDB supports
| `TimestampNanosecond` | `Timestamp_ns`, `Timestamp(9)` |

You can use these alias types when creating tables.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampMillisecond`.
For example, use `Varchar` instead of `String`, `Double` instead of `Float64`, and `Timestamp(0)` instead of `TimestampSecond`.

```sql
CREATE TABLE alias_types (
Expand Down

0 comments on commit 0285a6b

Please sign in to comment.