Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get last value knex in postgresql

const getPoinLocationName = await db('profie').select(
 db.raw('last_value("name") over(order by created_at desc) as name')
)
 
PREVIOUS NEXT
Tagged: #knex #postgresql
ADD COMMENT
Topic
Name
9+4 =