我将JSON作为字符串存储在我的数据库中,并希望将其中的部分内容读回存储过程。字符串如下所示,我想过尝试像
那样做子字符串 `SELECT
SUBSTRING(DisplayData, CHARINDEX('"filePath":"', DisplayData) + 12, LEN(DisplayData)) as filePath
FROM bridge.BridgeAttachment`
但不知道如何结束它以获得我想要的东西。
{"IsSelected":"N","Caption":"","Figure":2,"filePath":"/upload/20018/984a8fb.png","attachmentid":77,"attachmentTypeCode":"Field","fileSize":18325,"mimeType":"image/png"}