質問編集履歴

3

文法の修正

2017/08/25 09:06

投稿

dog57
dog57

スコア131

test CHANGED
File without changes
test CHANGED
@@ -550,7 +550,7 @@
550
550
 
551
551
  ```php
552
552
 
553
- $statement = $dbh->prepare('SELECT * FROM country WHERE nation LIKE :nati or rank like :rank
553
+ $statement = $dbh->prepare('SELECT * FROM country WHERE nation LIKE :nation or rank like :rank
554
554
 
555
555
  or food like :food
556
556
 

2

誤字の修正

2017/08/25 09:06

投稿

dog57
dog57

スコア131

test CHANGED
File without changes
test CHANGED
@@ -550,9 +550,7 @@
550
550
 
551
551
  ```php
552
552
 
553
- $statement = $dbh->prepare('SELECT * FROM country WHERE nation LIKE :nation
553
+ $statement = $dbh->prepare('SELECT * FROM country WHERE nation LIKE :nati or rank like :rank
554
-
555
- or rank like :rank
556
554
 
557
555
  or food like :food
558
556
 

1

追加

2017/08/25 09:05

投稿

dog57
dog57

スコア131

test CHANGED
File without changes
test CHANGED
@@ -548,6 +548,18 @@
548
548
 
549
549
  select文を下記のように変更しましたが、ダメでした。
550
550
 
551
+ ```php
552
+
553
+ $statement = $dbh->prepare('SELECT * FROM country WHERE nation LIKE :nation
554
+
555
+ or rank like :rank
556
+
557
+ or food like :food
558
+
559
+ or reason like :reason');
560
+
561
+ ```
562
+
551
563
 
552
564
 
553
565
  ###補足情報(言語/FW/ツール等のバージョンなど)