質問編集履歴
2
構文の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
テーブルは次の通りです.
|
9
9
|
|
10
|
-
CREATE TABLE
|
10
|
+
CREATE TABLE `json_test` (`col`, JSON);
|
11
11
|
|
12
12
|
|
13
13
|
### 該当のソースコード
|
1
ソースコード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,6 +20,12 @@
|
|
20
20
|
echo $json_data;
|
21
21
|
```
|
22
22
|
|
23
|
+
```mysql
|
24
|
+
INSERT INTO `json_test` VALUE
|
25
|
+
('{"nodes":[{"id":0,"title":"new concept0","x":537.5,"y":200},
|
26
|
+
{"id":1,"title":"new concept1","x":537.5,"y":400}]}');
|
27
|
+
```
|
28
|
+
|
23
29
|
$json_dataには格納したいJSON形式のデータが格納されており,実際の出力結果も問題ありません.
|
24
30
|
|
25
31
|
しかし,
|