Possible Duplicate:
Is there a way to select nth column in a SELECT clause from a table/view
How to select first five column of a table without using column name.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
how do you define ‘the first 5 columns’? alphabetically?
do you just want the column names? or the data from those columns?
i would say this is first a call to the data dictionary to find all the columns, then turn that result into some sql to do the actual select if needed.