Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/postgresql/postgresql-tutorial/postgresql-array.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nextLink:

## Introduction to PostgreSQL array data type

In PostgreSQL, an array of a collection of elements that have the same data type.
In PostgreSQL, an array is a collection of elements that have the same data type.

Arrays can be one\-dimensional, multidimensional, or even nested arrays.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ INSERT INTO production_orders (description)
VALUES('Make for Infosys inc.');
```

Then, to make sure that the `qty` field is not null, you can add the not\-null constraint to the `qty` column. However, the column already contains data. If you try to add the not\-null constraint, PostgreSQL will issue an error.
Then, to make sure that the `qty` field is not null, you can add the not\-null constraint to the `qty` column. However, the column currently contains no value \(NULL\). If you try to add the not\-null constraint, PostgreSQL will issue an error.

To add the `NOT NULL` constraint to a column that already contains NULL, you need to update `NULL` to non\-NULL first, like this:

Expand Down