我有一张这样的桌子:
scan_time credential status asset_code
value10 value12 value13 value14
value20 value22 value23 value24
value30 value23 value24 value25
我有一个这样的 JSON 数据:
[
{
"scan_time": "Oct. 18, 2013, 6:27 p.m",
"credential": "iexactlyknow",
"status": 1,
"asset_code": "you10"
},
{
"scan_time": "Oct. 18, 2013, 6:20 p.m",
"credential": "302E32325F302E30",
"status": 2,
"asset_code": "10001"
}
]
我想在表中附加 JSON 数据,如下所示:
scan_time credential status asset_code
Oct. 18, 2013, 6:27 p.m iexactlyknow 1 you10
Oct. 18, 2013, 6:20 p.m 302E32325F302E3 2 10001
value10 value12 value13 value14
value20 value22 value23 value24
value30 value23 value24 value25
有可能吗?
如果附加 2 行很困难,那么你可以考虑只附加 1 行,然后你可以考虑这样的数据:
[
{
"scan_time": "Oct. 18, 2013, 6:20 p.m",
"credential": "302E32325F302E30",
"status": 2,
"asset_code": "10001"
}
]