Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
docs: upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
planetscale-actions-bot committed Nov 5, 2024
1 parent 5b6a2a1 commit c953a21
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions docs/concepts/foreign-key-constraints.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'Foreign key constraints'
subtitle: 'Learn more about using foreign key constraints in PlanetScale.'
date: '2024-03-18'
date: '2024-11-05'
---

## What is a foreign key constraint?
Expand Down Expand Up @@ -83,22 +83,6 @@ For example:
REPLACE INTO tbl SELECT * FROM tbl2;
```

#### `UPDATE` or `DELETE` with a `LIMIT` statement

For example:

```
UPDATE tbl SET col = 3 LIMIT 1;
```

#### `UPDATE` or `DELETE` with multiple tables statement

For example:

```
DELETE t1, t2 FROM t1 INNER JOIN t2 INNER JOIN t3 WHERE t1.id=t2.id AND t2.id=t3.id;
```

#### `UPDATE` for a foreign key column statement and referencing the column being updated in the same `UPDATE` statement

For example:
Expand Down

0 comments on commit c953a21

Please sign in to comment.