Skip to content

Commit 01f9a2e

Browse files
committed
Clarifying ambiguous wording.
1 parent 9ae9a74 commit 01f9a2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/d1/build-with-d1/import-export-data.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,11 @@ If you receive an error when trying to import an existing schema and/or dataset
167167

168168
### Resolve `Statement too long` error
169169

170-
If you encounter a `Statement too long` error when trying to import a large SQL file into D1, it means that one of the SQL statements in your file exceeds the maximum allowed length. To resolve this issue, try one of the following approaches:
170+
If you encounter a `Statement too long` error when trying to import a large SQL file into D1, it means that one of the SQL statements in your file exceeds the maximum allowed length.
171171

172-
- Convert a single large `INSERT` statement into multiple smaller `INSERT` statements. For example:
172+
To resolve this issue, convert the single large `INSERT` statement into multiple smaller `INSERT` statements. For example, instead of inserting 1,000 rows in one statement, split it into four groups of 250 rows, as illustrated in the code below.
173+
174+
Before:
173175

174176
```sql
175177
INSERT INTO users (id, full_name, created_on)
@@ -180,7 +182,7 @@ VALUES
180182
('01GREFXCNF67KV7FPPSEJVJMEW', 'Riane Zamora', '2022-12-24 06:49:04');
181183
```
182184

183-
- Break it into multiple `INSERT` statements:
185+
After:
184186

185187
```sql
186188
INSERT INTO users (id, full_name, created_on)
@@ -191,8 +193,6 @@ VALUES
191193
('01GREFXCNBYBGX2GC6ZGY9FMP4', 'Hube Bilverstone', '2022-12-15 21:56:13');
192194
```
193195

194-
- If you have a single large `INSERT` statement with many rows, break it into smaller chunks. For example, instead of inserting 1,000 rows in one statement, try splitting that into 250 rows.
195-
196196
## Next Steps
197197

198198
- Read the SQLite [`CREATE TABLE`](https://www.sqlite.org/lang_createtable.html) documentation.

0 commit comments

Comments
 (0)