Created
July 20, 2022 06:06
-
-
Save MarshalOfficial/47b6cd73dfe50f614a262df039da1b1b to your computer and use it in GitHub Desktop.
json value sql server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --select top 10 JSON_QUERY((select [value] from OPENJSON(rabbit_message) where Id=Id),'$.MessageId') AS test,* | |
| --from [dbo].[message_logs] (nolock) | |
| --where 1=1 | |
| --select top 10 (select [value] from OPENJSON(rabbit_message)) AS test,* | |
| --from [dbo].[message_logs] (nolock) | |
| --where 1=1 | |
| select top 10 JSON_Value((select [value] from OPENJSON(rabbit_message) where Id=Id),'$.MessageId') AS test,* | |
| from [dbo].[message_logs] (nolock) | |
| where 1=1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment