回答編集履歴

1

追記

2019/12/31 10:34

投稿

m.ts10806
m.ts10806

スコア80852

test CHANGED
@@ -8,6 +8,10 @@
8
8
 
9
9
  ```php
10
10
 
11
- $sql='SELECT code,date,column1,column2,column3 FROM table WHERE (DATE_FORMAT(date, \'%Y%m\') = ' . $currentDate . ') ORDER BY code DESC';
11
+ $sql='SELECT code,date,column1,column2,column3 FROM table WHERE (DATE_FORMAT(date, \'%Y%m\') = \'' . $currentDate . '\') ORDER BY code DESC';
12
12
 
13
13
  ```
14
+
15
+
16
+
17
+ 想定の情報がとれるか、SQLが正しいかは別として、Syntax取り除くだけならこう。