LoginSignup
0
0

More than 5 years have passed since last update.

PHP と MySql 自分用メモ

Posted at

2次元連想配列の特定の値だけ変更

【PHP】【Tips】foreachで配列の値を変更するときに参照渡しを利用すると便利!

データーベースの結合

データーベースの結合〜3つ以上のテーブル結合〜

例: order_tとbento_tをbento_idでくっつけ、さらにbento_tとstore_tをstore_idでくっつける。
SELECT * FROM order_t
JOIN bento_t ON order_t.bento_id = bento_t.bento_id
JOIN store_t ON bento_t.store_id = store_t.store_id;

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0