Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

node js mysql get insert id

th3n00bc0d3r answered on May 15, 2023 Popularity 5/10 Helpfulness 5/10

Contents


More Related Answers

  • mysql id of inserted row
  • nodejs mysql getting the id of an inserted row
  • insert query return id mysql
  • nodejs mysql insert object query
  • node js return ID in postgres insert
  • mysqli insert id
  • db::table() insert get id

  • node js mysql get insert id

    0

    connection.query('INSERT INTO posts SET ?', {title: 'test'}, function(err, result, fields) {

    if (err) throw err;

    console.log(result.insertId);

    }); 

    Popularity 5/10 Helpfulness 5/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 15 2023
    th3n00bc0d3r
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.