Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 mysql 数据库,其中有 3 个表“小组赛”、“四分之一决赛”、“半决赛”。所有这些表都有一个名为“日期”的列。现在我想写一个查询,我可以从这些表中获取具有特定日期的所有字段?我应该用php写什么?
为了得到你想要的,你可以编写一个查询来连接 3 个表,例如:
SELECT * FROM groupstage, quarterfinal, semifinal WHERE groupstage.date = quarterfinal.date AND quarterfinal.date = semifinal.date AND date = "YOUR DATE"
在 php 中,您应该只创建一个 var $query = "My query above"