I've got a quirky little problem where it would be very helpful to refer to columns based on their ordinal position. ie. to retrieve the 2nd column do something similar to:
SELECT 2 from <tablename> ...???
I've seen there's an ORDINAL_POSITION column in the INFORMATION_SCHEMA.COLUMNS view. Is there some way that I could make use of this?
Any suggestions much appreciated!
Cheers
Neil
SELECT 2 from <tablename> ...???
I've seen there's an ORDINAL_POSITION column in the INFORMATION_SCHEMA.COLUMNS view. Is there some way that I could make use of this?
Any suggestions much appreciated!
Cheers
Neil