質問編集履歴

1

エラーメッセージの追記

2023/03/23 14:01

投稿

kss
kss

スコア9

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,13 @@
44
44
  left join wp_postmeta m1 on p.id = m1.post_id and m1.meta_key like "キー1"
45
45
  left join wp_postmeta m2 on p.id = m2.post_id and m2.meta_key like "キー2"
46
46
  ```
47
- このように複数のテーブルを結合しようとしたのですが、構文エラーが返ってきてしまいました。
47
+ このように複数のテーブルを結合しようとしたのですが、下記のような構文エラーが返ってきてしまいました。
48
+ ```
49
+ ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from
50
+ wp_posts p
51
+ left join wp_postmeta m1 on p.id = m1.post_id
52
+ and m1' at line 5
53
+ ```
48
54
 
49
55
  初歩的な質問で大変恐縮ですが、お力をお貸し頂けないでしょうか。
50
56
  よろしくお願い致します。