If I have two tables, with columns
TABLE 1: [_id,info]
TABLE 2: [_id,date]
and make a join how can I resolve the ambiguous of the _id columns in the resulting Cursor and access only to the column _id of the table 2?
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.
In general if you have ambiguous column names you can distinguish between them by using aliases.
In this case I’m guessing that you are joining on the _id field being equal. Then you can select it only once: