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.
PHP で SQL-Join 機能を実現する最良の方法は何ですか。異なるホスト上のデータベースから「テーブル」データ (オブジェクトまたは配列の配列など) を結合する必要があるため、これが必要です。
すべての行をループするよりも良いアイデアはありますか?
注:PHPにあるべきではありません:)
キーが同じ場合は、キーをインデックスとして多次元配列を作成してください。それに応じてデータを割り当てます。array[key][valuefromtable1]=array(); のように array[key][valuefromtable2]=array();