質問編集履歴

2

コマンドの例が間違えてました…

2015/06/08 09:29

投稿

usugita_san
usugita_san

スコア226

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ```
6
+
5
- db.t_chat_contents.find({contents : /hoge:hoge/})
7
+ db.t_contents.find({contents : /hoge:hoge/})
8
+
9
+ ```
6
10
 
7
11
 
8
12
 
@@ -12,7 +16,7 @@
12
16
 
13
17
 
14
18
 
15
- { "_id" : ObjectId("547d0b497147d93318d68afe"), "contents" : "[hoge:hoge]" }
19
+ > { "_id" : ObjectId("547d0b497147d93318d68afe"), "contents" : "[hoge:hoge]" }
16
20
 
17
21
 
18
22
 
@@ -20,7 +24,11 @@
20
24
 
21
25
 
22
26
 
27
+ ```
28
+
23
- db.t_chat_contents.find({contents : /[hoge:hoge]/})
29
+ db.t_contents.find({contents : /[hoge:hoge]/})
30
+
31
+ ```
24
32
 
25
33
 
26
34
 

1

質問タイトルが間違えていました…ごめんなさい。

2015/06/08 09:29

投稿

usugita_san
usugita_san

スコア226

test CHANGED
@@ -1 +1 @@
1
- mongodbで、like検索に変数を使えるか
1
+ mongodbで、like検索が出来ない文字列
test CHANGED
File without changes