get last inserted id with mysql
noob question, but what is the preffered way to get the last inserted id using mysql?
const data = await db.insert(brand).values(brandInsert)
const lastId = ??
thanks?
const data = await db.insert(brand).values(brandInsert)
const lastId = ??
thanks?