sql - select records with max(rowid) from a select with group by field -


i have query this:

select aa, bb, cc, dd, ee, ff, gg, hh, ii, ll, mm table1 group aa, bb, cc, dd, ee; 

now, want select field don't compare in group by, records max rowid. i'm on postgres , rowid equivalent ctid?.

which equivalent rowid in postgresql? how it? thanks

i not sure mean, add max(ctid) select list.

two caveats:

  1. that not make sense.

  2. ctid quite different oracle's rowid since postgresql's row versioning works differently. after each update, row can have different ctid.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -