jimmyoneshot Posted October 23, 2011 Share Posted October 23, 2011 Quick question. I need to select the same thing as 2 things and I'm wondering if there is a shorthand to basically do this:- SELECT photos.id AS photoId AND itemId, photos.name, photos.author_id FROM photos OR is there no shorthand for this and will it need to be done as:- SELECT photos.id AS photoId, photos.id AS itemId, photos.name, photos.author_id FROM photos Quote Link to comment Share on other sites More sharing options...
awjudd Posted October 23, 2011 Share Posted October 23, 2011 There is no shorthand. You need to split it out. ~juddster Quote Link to comment Share on other sites More sharing options...
jimmyoneshot Posted October 23, 2011 Author Share Posted October 23, 2011 Ok thanks juddster Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.