This file contains 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
--Exemplo 1 : consulta genérica | |
DECLARE @json AS NVARCHAR(MAX) | |
SELECT @json = BulkColumn FROM OPENROWSET (BULK 'C:\TEMP\exemplo.json', SINGLE_CLOB) as Arquivo | |
SELECT F.* FROM OPENJSON(@json) AS F | |
GO | |
This file contains 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
{ | |
"Colecionador" : "Zeca Balero", | |
"Idade" :45, | |
"Cidade" : "São Paulo-SP", | |
"Carros" : [ | |
{ | |
"Marca" : "Ford", | |
"Cor" : "Branco", | |
"AnoFabricacao" : 1965, | |
"ValorEstimado" : 25000.00, |
This file contains 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
{ | |
"@odata.context": "https://wcrivelini-test1.search.windows.net/indexes('publications')/$metadata#docs(TITULO)", | |
"value": [ | |
{ | |
"@search.score": 1, | |
"TITULO": "Preparando sua Base de Dados para o Mundo" | |
}, | |
{ | |
"@search.score": 1, | |
"TITULO": "Executando declarações UPDATE com chaves primárias compostas" |