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
これが1つです:
SELECT * FROM products AS p INNER JOIN stock AS s ON p.id = s.id WHERE fk_group_id = 11