I would like only select message and username from the mysql JOIN result. how do I do that? Appreciated.
-
add specific columns rather * ,you can get desired outputTharif– Tharif2015-10-31 06:35:51 +00:00Commented Oct 31, 2015 at 6:35
-
I tried, select messages.message users.username from messages LEFT OUTER JOIN users ON messages.user_id = users.id; and it returned an error. guess becuase I put users.username when I do FROM only from messages? I could not putw both messages users after FROM. suggestion?jhlosin– jhlosin2015-10-31 06:47:03 +00:00Commented Oct 31, 2015 at 6:47
-
post your table structure of users and messagesTharif– Tharif2015-10-31 06:48:36 +00:00Commented Oct 31, 2015 at 6:48
-
@utility, just updated. thanks.jhlosin– jhlosin2015-10-31 06:51:43 +00:00Commented Oct 31, 2015 at 6:51
Add a comment
|

