mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
7d30fda97e
commit
cb096d8710
1 file changed
+2
-2
@@ -495,7 +495,7 @@ dbQueue.inDatabase { db in
|
||||
"FROM persons " +
|
||||
"JOIN pets ON pets.masterId = persons.id " +
|
||||
"GROUP BY persons.id " +
|
||||
"HAVING COUNT(pets.id) > 1")
|
||||
"HAVING COUNT(pets.id) >= 2")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1418,7 +1418,7 @@ dbQueue.inDatabase { db in
|
||||
"FROM persons " +
|
||||
"JOIN pets ON pets.masterId = persons.id " +
|
||||
"GROUP BY persons.id " +
|
||||
"HAVING COUNT(pets.id) > 1")
|
||||
"HAVING COUNT(pets.id) >= 2")
|
||||
|
||||
// SELECT * FROM persons WHERE id = 1
|
||||
Person.fetchOne(db, primaryKey: 1)
|
||||
|
||||
Reference in new issue
Block a user