Skip to content

Commit

Permalink
[fix] fixed code not fitting the window in indexes slides
Browse files Browse the repository at this point in the history
  • Loading branch information
arestivo committed Oct 18, 2024
1 parent 78c389a commit baca17f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion markdown/indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ SELECT * FROM employees WHERE type <> 'normal';
Another possible use for partial indexes is to enforce constraints in a subset of the table:

```sql
CREATE UNIQUE INDEX idx_mail ON employees (mail) WHERE type <> 'admin';
CREATE UNIQUE INDEX idx_mail ON employees (mail)
WHERE type <> 'admin';
```

---
Expand Down

0 comments on commit baca17f

Please sign in to comment.