PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

Come restituire un valore normale da una query Knex / Postgresql?

Dai un'occhiata al pluck metodo.

db(table).where('piv_id', myId).pluck('sf_id'); // => will return you ["a4T8A0000009PsfUAE"]