SQL Server: Update table based on JSON
问题 I am trying to update rows in table based on JSON I have. JSON has the following structure: "sensors": [ { "id": "5afd7160f16819f11814f6e2", "num": 0, "name": "AC01", "enabled": true, "unit": "Volt AC Phase 1", "desc": "NAMsdafE", "lt_disaster": 1, "gt_disaster": 1, "lt_high": 1, "gt_high": 1, "lt_average": 1, "gt_average": 1 },... Table dbo.sensors has same structure + few more columns. To insert such JSON object, not array, into table, I would do it this way: INSERT INTO dbo.sensors (......