Skip to content

Commit e33d88b

Browse files
authored
Fixed typo in EXPLAIN command used for FK example
1 parent c4f0aa1 commit e33d88b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ If a field has Foreign Keys constraints, `random-data-load` will get up to `--ma
6666
The number of samples to get follows this rules:
6767
**1.** Get the aproximate number of rows in the referenced table using the `rows` field in:
6868
```
69-
EXPLAIN COUNT(*) FROM <referenced schema>.<referenced table>
69+
EXPLAIN SELECT COUNT(*) FROM <referenced schema>.<referenced table>
7070
```
7171
**1.1** If the number of rows is less than `max-fk-samples`, all rows are retrieved from the referenced table using this query:
7272
```

0 commit comments

Comments
 (0)