“Knex Atualize e liste todos os registros MySQL” Respostas de código

Knex Atualize e liste todos os registros MySQL

const data = await db('user')
.where('userId', '818f68e5-bf7f-418c-8e8e-19f3b25cb9c3')
.update({ about: 'Alice in Wonderland' }, '*', { includeTriggerModifications: true })
Restu Wahyu Saputra

Resulnt All Update Knex Mysql

const {id,name} = req.body;
    const subQuery = knex('client').select('id').where({id})
    subQuery.then(response=>{
    if(response.length>0){
        subQuery.update({name})
        .then(resp=>{
            res.json('update done')
        })
        .catch(err=>{res.json(err)})
    }
    else{
        res.json('update failed')
     }
})
.catch(err=>{res.json(err)})
Restu Wahyu Saputra

Respostas semelhantes a “Knex Atualize e liste todos os registros MySQL”

Perguntas semelhantes a “Knex Atualize e liste todos os registros MySQL”

Mais respostas relacionadas para “Knex Atualize e liste todos os registros MySQL” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código