Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccestes committed Jun 22, 2022
1 parent d4eaf43 commit d402071
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ CREATE TABLE emp (

If you test the check constraint by entering a valid dept type, the INSERT statement works without error:

```text
```sql
test=# INSERT INTO emp VALUES (7324, 'sales');

INSERT 0 1
```

If you try to insert a value not included in the constraint (`support`), EDB Postgres Advanced Server returns an error:

```text
```sql
test=# INSERT INTO emp VALUES (7325, 'support');

ERROR: new row for relation "emp" violates check constraint "emp_dept_check"
Expand Down

0 comments on commit d402071

Please sign in to comment.