Skip to content

Commit b613be6

Browse files
authored
Merge pull request #21338 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to main to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents f5c5a7d + aa7a032 commit b613be6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs/t-sql/functions/json-modify-transact-sql.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ SET @info=JSON_MODIFY(@info,'$.surname','Smith')
108108

109109
PRINT @info
110110

111+
-- Set name NULL
112+
113+
SET @info=JSON_MODIFY(@info,'strict $.name',NULL)
114+
115+
PRINT @info
116+
111117
-- Delete name
112118

113119
SET @info=JSON_MODIFY(@info,'$.name',NULL)
@@ -263,7 +269,7 @@ PRINT @info
263269
"skills": ["C#", "SQL"]
264270
} {
265271
"name": "John",
266-
"skills": "["C#","T-SQL","Azure"]"
272+
"skills": ["C#", "T-SQL", "Azure"]
267273
}
268274
```
269275

0 commit comments

Comments
 (0)