I was asked this question and could not come up with the answer.
Is there a way to find the entry at the first row and first column in a table?
(In matrix notation, that would be the [1,1]th location)
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.
There were a lot of good feedback related to the “first row” part of thge question. But as far as the “first column” goes, you can try one of the following options:
You can use database data dictionary to get the first column of the table. In Oracle, for example the query would be:
If you use JDBC or some other database access API, most of these APIS would allow you to do
"select *"and then you could get first column by accessing zero (or first) element of you result set.