开发者社区> 问答> 正文

不知道sql语句怎么写,想要把日志中“id”:“22”写入数据库中

2020-12-12 19:37:03.246, 00E3A2E634FE4137AA97BBE36E691819, upstream - bizType=PROPERTY_REPORT,params={"aliyunPk":"1258103779501748","id":"22","iotId":"AW7cwOrd4F4811299ppn000000","method":"thing.event.property.post","params":{"bianhao":215,"bianhaoa":93},"script":true,"topic":"/sys/a1AjjGsgSiN/262045786596/thing/event/property/post","uniMsgId":"5350892502723309568","version":"1.1"},result=code:200,message:success,topic=/sys/a1AjjGsgSiN/262045786596/thing/model/up_raw,response={"code":200,"data":{},"id":"22","message":"success","method":"thing.event.property.post","version":"1.0"},device={"aliyunCommodityCode":"iothub_senior","deviceKey":"AW7cwOrd4F4811299ppn","deviceSecret":"***","firmwareVersion":"1.2.8","gmtCreate":1607753133000,"gmtModified":1607753844000,"id":1842039920,"instanceId":"iotx-oxssharez200","iotId":"AW7cwOrd4F4811299ppn000000","name":"262045786596","nickname":"hanfengg43","productKey":"a1AjjGsgSiN","rbacTenantId":"00E3A2E634FE4137AA97BBE36E691819","region":"cn-shanghai","status":0,"statusLast":0,"thingType":"DEVICE"},scriptData={"downOriginalData":{"code":200,"data":{},"method":"thing.event.property.post","id":"22","message":"success","version":"1.0"},"upOriginalData":"d75db6","upTransformedData":{"method":"thing.event.property.post","id":"22","params":{"bianhao":215,"bianhaoa":93},"version":"1.1"}},useTime=1733,traceId=0b57ff8816077730214073405e5614

展开
收起
游客m6cahbyyumosm 2020-12-14 19:58:43 1343 0
1 条回答
写回答
取消 提交回答
  • 数据库的表格式提供一下啊,id是自增主key?

    2021-02-08 16:59:46
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载