質問編集履歴
1
実際ソースDebug
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,3 +15,39 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
これなのに、エラーが発生します。なにが問題でしょうか?
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
array(1) {
|
24
|
+
|
25
|
+
[0]=>
|
26
|
+
|
27
|
+
string(46) "'10','11','16'"
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
**デバッグ中
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
select mmt.main_data_id
|
38
|
+
|
39
|
+
from ( select * from main_data_tbl
|
40
|
+
|
41
|
+
where '2015-01-01' < main_data_date_end
|
42
|
+
|
43
|
+
and '2015-12-31' > main_data_date_end
|
44
|
+
|
45
|
+
) mmt
|
46
|
+
|
47
|
+
left join sub_data_tbl mst on mst.main_data_id = mmt.main_data_id
|
48
|
+
|
49
|
+
where mmt.main_data_del_flg = 0
|
50
|
+
|
51
|
+
and mst.cd ='21'
|
52
|
+
|
53
|
+
and mst.type_cd in ('10','11','16')
|