i have select:
SELECT t1.*, t2.* from t1 left join t2 on t2.id = t1.id
when id exist or not exist in t2 I want all columns from t2 except t2.id (which can be NULL).
Is there any way do this without print out all columns names in query?
thx
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.
No, you have to either specify all columns of interest or use a wildcard.