我有
成员表
member_Id
Last name
first name
postcode
reference
另一个表memberstomships
member_Id
membertomship_lastdate
membertomship_paymentmethod column with values money
member_id
membershipstatusid
membershipoptionid
另一张表membershipstatustype表
membershipstatusid
memberstatustype_name
另一个表成员类型
membershiptype_id
membershiptype_name
另一个表成员选项
membershiptype_id
membershipoptionid
我想为拥有 membertomship_paymentmethod is money 的成员获取姓氏和名字以及 memberstatustype_name 和 membershiptype_name 以及 membertomship_lastdate
谁能帮帮我....
非常感谢。
最佳答案
自己动手!以下是有关如何使用 SQL 连接的教程:
http://w3schools.com/sql/sql_join.asp
http://www.tizag.com/sqlTutorial/sqljoin.php
“给一个人一条鱼,你可以喂他一天。授人以渔,终生受用。”
关于mysql - 试图从表中获取金钱成员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6570021/