回答編集履歴
1
リファレンスへのリンクを追加
test
CHANGED
@@ -7,3 +7,9 @@
|
|
7
7
|
[誤]`$sql = 'select * from table where enable=1 and (a like :a or b like :b) ESCAPE "#"'`
|
8
8
|
|
9
9
|
[正]`$sql = 'select * from table where enable=1 and (a like :a ESCAPE "#" or b like :b ESCAPE "#")'`
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
MySQL5.6リファレンス (利用しているDB・バージョンがわからなかったので一例として)
|
14
|
+
|
15
|
+
https://dev.mysql.com/doc/refman/5.6/ja/string-comparison-functions.html
|