How can I implement this function of reading databases?

Source: Internet
Author: User
To implement this function of reading databases, how to edit this post by bnhxy at 2014-01-0720: 49: 05? for example, I have two table games with a column gameid, gamename contains data 1. & nbsp; gameid = 1
This post was last edited by bnhxy at 20:49:05 on. for example, I have two tables.
Table game has the gameid and gamename columns.
Contains data.
1. gameid = 1, gamename =
2. gameid = 2, gamename = B
3. gameid = 3, gamename = c

The table news contains newsid, news_title, and gameid.
Contains data.
1. newsid = 1, news_title = abc, gameid = 1
2. newsid = 2, news_title = def, gameid = 1 | 2
3. newsid = 3, news_title = ghi, gameid = 1 | 2 | 3

Finally, I want to output all news_title information about gamename = B.

In addition to using like, what other good methods can be used for output, or how can we create a table to achieve the corresponding effect? Share: More

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.