Skip to content

Commit 8064072

Browse files
committed
Changing the first statement to be simpler.
1 parent 02e1524 commit 8064072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/d1/build-with-d1/d1-client-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can pass multiple queries through `db.prepare()`.
3030
You can pass multiple queries into a single `.prepare()` statement. Simply delineate each query with a semi-colon.
3131

3232
```js
33-
const stmt = db.prepare("DELETE FROM users WHERE (name, age) = (SELECT name, age FROM users ORDER BY name, age LIMIT 1) ;SELECT * FROM users WHERE name = ?1").bind("Joe")
33+
const stmt = db.prepare("SELECT * FROM users WHERE name = "Anthony"; SELECT * FROM users WHERE name = ?1").bind("Joe")
3434
```
3535

3636
Note the following restrictions when passing multiple queries:

0 commit comments

Comments
 (0)