質問編集履歴

2

修正

2020/03/03 13:45

投稿

jiro-
jiro-

スコア28

test CHANGED
File without changes
test CHANGED
@@ -98,9 +98,13 @@
98
98
 
99
99
  {"id":"04F0B93A665D80","bib_no":"1","title":"hogehoge-taro"},
100
100
 
101
- {"id":"04D1B93A665D80","bib_no":"2","title":"hogehoge-jiro"},
101
+ {"id":"04D1B93A665D80","bib_no":"2","title":"hogehoge-jiro"},
102
102
 
103
- {"id":"0413B93A665D81","bib_no":"3","title":"hogehoge-rena"},
103
+ {"id":"0413B93A665D81","bib_no":"3","title":"hogehoge-rena"},
104
+
105
+ ],
106
+
107
+ ]
104
108
 
105
109
  ```
106
110
 
@@ -110,15 +114,31 @@
110
114
 
111
115
  ```
112
116
 
113
- "race_id":1,
117
+ "races":[
114
118
 
115
- "check_point_num":2,
119
+ {"race_id":1,
116
120
 
117
- "check_point_name":"スタート",
121
+ "check_points":[
118
122
 
119
- "race_name":"{$defT_NAME}",
123
+ {"check_point_num":2,
120
124
 
125
+ "check_point_name":"スタート",
126
+
127
+ }
128
+
129
+ ],
130
+
131
+ "tags":[
132
+
133
+ {"race_name":"{$defT_NAME}",
134
+
121
- "bib_no":"1","title":"hogehoge-taro"
135
+ "bib_no":"1","title":"hogehoge-taro"
136
+
137
+ }
138
+
139
+ ],
140
+
141
+ ]
122
142
 
123
143
  ```
124
144
 

1

追記

2020/03/03 13:45

投稿

jiro-
jiro-

スコア28

test CHANGED
File without changes
test CHANGED
@@ -103,3 +103,25 @@
103
103
  {"id":"0413B93A665D81","bib_no":"3","title":"hogehoge-rena"},
104
104
 
105
105
  ```
106
+
107
+
108
+
109
+ ###表示したい例
110
+
111
+ ```
112
+
113
+ "race_id":1,
114
+
115
+ "check_point_num":2,
116
+
117
+ "check_point_name":"スタート",
118
+
119
+ "race_name":"{$defT_NAME}",
120
+
121
+ "bib_no":"1","title":"hogehoge-taro"
122
+
123
+ ```
124
+
125
+
126
+
127
+ 例なのですが、このように3つのテーブルからそれぞれ数個ずつ取得する形です。