Skip to content

Commit

Permalink
Update array-type.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
WanYixian committed Dec 9, 2024
1 parent e127a3a commit 5a91e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/data-types/array-type.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "ARRAY type"
description: "An array `T[]` is an ordered list of zero or more elements that share the same data type."
description: "An array `T[]` is an ordered list of zero or more elements that share the same data type. RisingWave uses one-based indexing for arrays, meaning an array with n elements starts at `array[1]` and ends at `array[n]`."
---

## Define an array
Expand Down Expand Up @@ -46,7 +46,7 @@ CREATE TABLE taxi (

To add values to an array, in the SQL statement, use ARRAY to indicate that this is an array, and then enclose the data in the array with `[]`. For example, `ARRAY ['ABCD1234', 'ABCD1235', 'ABCD1236', 'ABCD1237']`.

#### Examples[](#examples-1 "Direct link to Examples")
### Examples[](#examples-1 "Direct link to Examples")

Add values to table `x`:

Expand Down

0 comments on commit 5a91e6b

Please sign in to comment.