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.
我有 2 张桌子
1_products id, code, make, model, fk_group_id 1_stock id, stock, repair
我希望能够根据第一个匹配返回两个表中的所有行。说WHERE fk_group_id = 11
WHERE fk_group_id = 11
这是一个:
SELECT * FROM products AS p INNER JOIN stock AS s ON p.id = s.id WHERE fk_group_id = 11