MySQL Forums
Forum List  »  Quality Assurance

Re: selecting foreign key into a column
Posted by: ahmad rahimie
Date: May 04, 2013 09:37PM

Ah guys, I have found the way to do it. Below is the way of how i did it :
SELECT userID,(SELECT GROUP_CONCAT(CONVERT(bookID,CHAR(3))) FROM BOOK_TABLE WHERE USER_TABLE.userID = BOOK_TABLE.userID) AS books FROM user

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: selecting foreign key into a column
1441
May 04, 2013 09:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.