Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare @country nvarchar(max) = '{
- "id" : 101,
- "name": "United States",
- "continent": "North America"
- }';
- INSERT INTO Countries
- SELECT * FROM OPENJSON(@country)
- WITH (id int,
- name nvarchar(100),
- continent nvarchar(100))
Add Comment
Please, Sign In to add comment