From d8d2dbe1c44d1d1c500152056e053700aad176c5 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Thu, 14 Jan 2021 15:22:52 -0300 Subject: docs: Fixing an aesthetic detail in SQL (#372) --- docs/How-to-obtain-free-records.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/How-to-obtain-free-records.md b/docs/How-to-obtain-free-records.md index 394fe6b..8414bb3 100644 --- a/docs/How-to-obtain-free-records.md +++ b/docs/How-to-obtain-free-records.md @@ -7,7 +7,7 @@ Either because we want to insert a new value, or we want to restructure our tabl To do this, you can use the following script ```sql -SELECT t.id +1 +SELECT t.id + 1 FROM Table1 t WHERE NOT EXISTS ( SELECT * @@ -24,7 +24,7 @@ Now let's look at an example. Let's suppose that we want to search the first fre The first thing we have to identify is your primary key: `guid` ```sql -SELECT t.`guid` +1 +SELECT t.`guid` + 1 FROM `creature` t WHERE NOT EXISTS ( SELECT * -- cgit