postgresql - Find Last 5 columns of a table -


is there way find values of last 5 columns of table? suppose if have table of 20 columns, want select values last 5 columns.

any appreciated. in advance.

don't. it's stupid.

there shouldn't be order columns - should have names. it's convenience when testing or sitting @ db console select * gives them all.

there very few cases select * makes sense in live system. can't think of want whatever columns happen "last" on table.

if committed doing you'll have query information-schema or system catalogues. list of columns on particular table , build sql query them.

however, if aren't in control of table it's meaningless task since won't know information means. if in control of table know column-names there , that's better way it.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -