Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Bri
.
Toggle Highlighting
SQL
#SELECT JSON_MERGE(JSON_OBJECT('user_name', 'foofoo', 'user_id', 99),JSON_OBJECT('user_name', 'foofoo2', 'user_id', 299)) #set @jdata = JSON_MERGE(JSON_OBJECT('user_name', 'foofoo', 'user_id', 99),JSON_OBJECT('user_name', 'foofoo2', 'user_id', 299)); set @jdata = JSON_MERGE(JSON_OBJECT('userName', 'foofoo', 'userId', 99),JSON_OBJECT('userName', 'foofoo2', 'userId', 299)); SELECT @jdata; #SELECT * #d.user_name, d.user_id #FROM # JSON_TABLE(@jdata, # '$' COLUMNS( # user_name VARCHAR(25) PATH '$.userName', # user_id VARCHAR(25) PATH '$.userId') # ) AS d #WHERE id = 2;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...