Skip to content

Commit 2c96da4

Browse files
committed
Added documentation for affectedRows to FAQ
1 parent 27efc0c commit 2c96da4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ at all.
202202
console.log(info.insertId);
203203
});
204204

205+
### How can I find out the number of rows affected by the last query?
206+
207+
client.query('UPDATE my_table SET title = ?', function(err, info) {
208+
console.log(info.affectedRows);
209+
});
210+
205211
## Todo
206212

207213
At this point the module is ready to be tried out, but a lot of things are yet to be done:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy