DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Maps / Dictionaries — Example 52

Quick explanation + ready code for: Maps / Dictionaries.

SQL Maps / Dictionaries Back to examples
Back to language
Syntax: Maps / Dictionaries in SQL. ID: #52

Code

SELECT JSON_OBJECT('a', 5, 'b', 6) AS obj;

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.