mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-01-07 01:50:01 -06:00
🍱 Update SVG files, a single file per diagram, sans-serif fonts (#1373)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cd19d606ab
commit
e7b970cfa8
@@ -35,7 +35,7 @@ And after we finish working with the data in this chapter, the `hero` table will
|
||||
|
||||
Each row in the table `hero` will point to a row in the table `team`:
|
||||
|
||||
<img alt="table relationships" src="/img/tutorial/relationships/select/relationships2.svg">
|
||||
<img alt="table relationships" src="/img/tutorial/relationships/select/relationships2.drawio.svg">
|
||||
|
||||
/// info
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ To connect them, we will add another column to the hero table to point to each t
|
||||
|
||||
This way each row in the table `hero` can point to a row in the table `team`:
|
||||
|
||||
<img alt="table relationships" src="/img/databases/relationships.svg">
|
||||
<img alt="table relationships" src="/img/databases/relationships.drawio.svg">
|
||||
|
||||
## One-to-Many and Many-to-One
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ And then you tell the database `ON` which condition it should join those two tab
|
||||
|
||||
But by default, only the rows from both left and right that match the condition will be returned.
|
||||
|
||||
<img alt="table relationships" src="/img/databases/relationships.svg">
|
||||
<img alt="table relationships" src="/img/databases/relationships.drawio.svg">
|
||||
|
||||
In this example of tables above 👆, it would return all the heroes, because every hero has a `team_id`, so every hero can be joined with the `team` table:
|
||||
|
||||
@@ -318,7 +318,7 @@ But in the database that we are working with in the code above, **Spider-Boy** d
|
||||
|
||||
So there's no way to join the **Spider-Boy** row with some row in the `team` table:
|
||||
|
||||
<img alt="table relationships" src="/img/tutorial/relationships/select/relationships2.svg">
|
||||
<img alt="table relationships" src="/img/tutorial/relationships/select/relationships2.drawio.svg">
|
||||
|
||||
Running the same SQL we used above, the resulting table would not include **Spider-Boy** 😱:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user