MySqlで一度に複数のテーブルからいろんなデータを呼び出すメモ
AAAとBBBのテーブルから同時にデータをセレクトしたいときに
AAAデーブルのキー1で選択した中で、さらにBBBテーブルのidが
AAAテーブルのkey2に一致するもの。
うーんこの説明はわかりずらいな。
まっ自分用メモという事で…
SELECT AAA_table.data1,AAA_table.data2,AAA_table.data3,
BBB_table.data4 FROM AAA_table,BBB_table WHERE AAA_table.key1=1
AND BBB_table.id=AAA_table.key2";
記事id:858 / 4083PV
関連記事
Warning: simplexml_load_file() [
function.simplexml-load-file]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in
/home/session-2/www/02_zatu/system_files/core_sys.php on line
41
Warning: simplexml_load_file(http://www.jigen.xyz/index.xml) [
function.simplexml-load-file]: failed to open stream: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in
/home/session-2/www/02_zatu/system_files/core_sys.php on line
41
Warning: simplexml_load_file() [
function.simplexml-load-file]: I/O warning : failed to load external entity "http://www.jigen.xyz/index.xml" in
/home/session-2/www/02_zatu/system_files/core_sys.php on line
41
Warning: Invalid argument supplied for foreach() in
/home/session-2/www/02_zatu/system_files/core_sys.php on line
42